Skip to content

UDF functions ​

DVDAddin adds 50 custom Excel functions that behave exactly like built-in ones: type them into a cell, fill them down, nest them inside other formulas.

How to use them ​

Type =dvd in a cell and Excel lists every function of the add-in; pick one with Tab and carry on typing the arguments. To see the name and meaning of each argument, click the fx button on the formula bar (or press Ctrl+A right after the function name) to open the arguments dialog — DVDAddin functions live in the DVD Functions category, except the three data-query functions dvdSQL, dvdSQLValue and dvdSheets, which live in DVD Addin.

=dvdVnd(F42; 1)
// → "Bằng chữ: Một trăm hai mươi lăm triệu đồng."

The argument separator depends on the Windows regional format. This documentation is written for the Vietnamese format and uses a semicolon ;. If your Excel runs on the English (US) format, type a comma , instead of ;.

Practice workbook ​

Every function has its own sample workbook: in the function's Illustrated walkthrough, click Download this function's sample workbook — the data matches the pictures and the formula cell is already selected. To get all 50 at once, use the full workbook below.

Download DVDAddin-Practice-UDF.xlsx — one sheet per function, named after it, with exactly the data from the guide pictures and the formula cell already selected; the Index sheet gives a formula to try and a link to each function's walkthrough.

All 50 functions ​

FunctionGroupPurpose
dvdAIExplainAI, network & shapeAsk an AI to explain the Excel formula in a cell.
dvdAutoHideRange & lookupHide the rows that fail a condition and renumber the rest.
dvdColorShapesAI, network & shapeRecolour several shapes from a list, with transparency.
dvdConcatIFTextJoin the values of a range, with or without a condition.
dvdConcatIFSTextJoin the values of a range that meet several conditions.
dvdCountIfColorRange & lookupCount the cells whose fill colour matches a sample cell.
dvdCountOccurrencesTextCount how often a substring occurs in a string.
dvdELookupRange & lookupReturn the result of the last matching row.
dvdEvaluateTextEvaluate the maths expression written after a colon in a string.
dvdExplainDate, number & moneyExplain a formula as result = expression.
dvdExplainEDate, number & moneyExplain a formula as expression = result.
dvdExtractElementTextExtract the nth element of a string, keeping empty elements.
dvdFilter2DArrayRange & lookupFilter a two-dimensional array on one column.
DVDFxAI, network & shapeFetch an exchange rate, latest or for a given date.
dvdJoinIFTextMerge values matching one condition, optionally removing duplicates.
dvdJoinIFSTextMerge values matching several range/criteria pairs.
dvdLDateDate, number & moneyWrite a date as the sentence used in official records.
dvdLookupAllSheetsRange & lookupLook a value up across all worksheets of the workbook.
dvdLTimeDate, number & moneyWrite hours and minutes in words.
dvdLTimeDateDate, number & moneyWrite time and date together in words.
dvdLunarToSolarDate, number & moneyConvert a lunar date into a solar date.
dvdMCLookupRange & lookupWrite every matching row, across several columns, into an output range.
dvdMoveShapeAI, network & shapeMove a shape to new coordinates on the worksheet.
dvdMVLookupRange & lookupReturn every matching value from a column offset to the lookup column.
dvdNoiSuyDate, number & moneyOne-dimensional linear interpolation.
dvdPicAI, network & shapeInsert a picture into a cell, scaled to fit.
dvdQRAI, network & shapeBuild a QR code from text and insert it into the cell.
dvdSheetsData queryList the sheet names of a closed Excel file.
dvdSolarToLunarDate, number & moneyConvert a solar date into a lunar date.
dvdSQLData queryQuery a closed Excel file with a compact SQL dialect and return the whole result range.
dvdSQLValueData queryLike dvdSQL but returns a single value — totals, counts, single-cell lookups.
dvdSteelWeightDate, number & moneySteel weight from bar diameter and quantity.
dvdStockAI, network & shapeFetch the price of a Vietnamese listed share.
dvdSumIfColorRange & lookupSum the cells whose fill colour matches a sample cell.
dvdSumVisibleRange & lookupSum the visible cells, skipping hidden rows and columns.
dvdSymbolTextInsert a check-box symbol (empty / ticked / crossed).
dvdTableLookupRange & lookupTwo-way lookup by row header and column header.
dvdTextJoinTextJoin several texts or ranges with one delimiter.
dvdTextSplitItemTextReturn the nth item after splitting a string by a delimiter.
dvdTranslateAI, network & shapeTranslate text with Google Translate.
dvdUnDiacriticsViTextStrip Vietnamese diacritics.
dvdUniConvertTextConvert VNI or Telex typing into Vietnamese Unicode.
dvdUniqueRange & lookupReturn an array of the unique values of a range.
dvdUnique2DArrayRange & lookupKeep the unique rows of an array based on one key column.
dvdUniqueVRange & lookupReturn the unique values, writing the remainder into an output range.
dvdUniVbaTextTurn a Vietnamese string into a VBA string expression.
dvdUsdDate, number & moneySpell a dollar amount out in English words.
dvdVndDate, number & moneySpell a Vietnamese dong amount out in words.
dvdWordCountTextCount the words in a string.
dvdXlookupRange & lookupExtended lookup with error handling and approximate match.

Functions that need internet or an API key ​

These four functions pull data from outside the workbook, so they only work with an internet connection:

FunctionRequirement
dvdTranslateInternet connection (Google Translate).
dvdStockInternet connection (VCBS price board).
DVDFxInternet connection; results are cached for one hour.
dvdAIExplainInternet connection and a Gemini API key configured in Tùy chọn (Options).

DVDFx and dvdAIExplain are asynchronous: the cell shows #N/A waiting... until the answer arrives, then updates itself.

The five groups ​

  • Text — 14 functions for joining, splitting, counting and handling Vietnamese strings.
  • Range & lookup — 14 functions for lookups, filtering, unique values, colour-based totals and row hiding.
  • Date, number & money — 11 functions for dates, the lunar calendar, amounts in words, formula explanations and steel weight.
  • AI, network & shape — 8 functions for AI, live data, QR codes and pictures.
  • Data query — 3 functions that read closed Excel files with a compact SQL dialect.

Released under DVDAddin License.