Click or drag to resize
PicoXLSX

CellBasicFormulasGetVLookup Method

Function to generate a Vlookup as Excel function

Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.2+f55916d49ef2baa43fc7dc8f5c7d751a77c50baf
Syntax
C#
private static Cell GetVLookup(
	Worksheet queryTarget,
	CellAddress address,
	Object number,
	Worksheet rangeTarget,
	CellRange range,
	int columnIndex,
	bool exactMatch,
	bool numericLookup
)

Parameters

queryTarget  Worksheet
Target worksheet of the query argument. Can be null if on the same worksheet.
address  CellAddress
In case of a reference lookup, query address of a cell as string.
number  Object
In case of a numeric lookup, number for the lookup.
rangeTarget  Worksheet
Target worksheet of the matrix. Can be null if on the same worksheet.
range  CellRange
Matrix of the lookup.
columnIndex  Int32
Column index of the target column within the range (1 based).
exactMatch  Boolean
If true, an exact match is applied to the lookup.
numericLookup  Boolean
If true, the lookup is a numeric lookup, otherwise a reference lookup.

Return Value

Cell
Prepared Cell object, ready to be added to a worksheet.
See Also