NanoXLSX Library Documentation
![]() | CellBasicFormulasGetVLookup Method |
Function to generate a Vlookup as Excel function
Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
private static Cell GetVLookup( Worksheet queryTarget, CellAddress address, Object number, Worksheet rangeTarget, CellRange range, int columnIndex, bool exactMatch, bool numericLookup )
Parameters
- queryTarget
- Type: NanoXLSXWorksheet
Target worksheet of the query argument. Can be null if on the same worksheet - address
- Type: NanoXLSXCellAddress
In case of a reference lookup, query address of a cell as string - number
- Type: SystemObject
In case of a numeric lookup, number for the lookup - rangeTarget
- Type: NanoXLSXWorksheet
Target worksheet of the matrix. Can be null if on the same worksheet - range
- Type: NanoXLSXCellRange
Matrix of the lookup - columnIndex
- Type: SystemInt32
Column index of the target column (1 based) - exactMatch
- Type: SystemBoolean
If true, an exact match is applied to the lookup - numericLookup
- Type: SystemBoolean
If true, the lookup is a numeric lookup, otherwise a reference lookup
Return Value
Type: CellPrepared Cell object, ready to be added to a worksheet
