This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
LOOKUP

LOOKUP 


 

LOOKUP ( toFind , intervalToSearch , returnInterval ) 
Parameter Type   Description
toFind  CellRef, Text, Number, Boolean in Value to find
intervalToSearch  CellRef in Cell range to search
returnInterval  CellRef in Cell range to find corresponding value

The LOOKUP function searches for the value toFind in the intervalToSearch cell range and returns the corresponding value used in the returnInterval range.

toFind must contain the reference of a cell that actually contains the value to find.

intervalToSearch must be sorted in ascending order since LOOKUP uses the first value higher or equal to the value set as toFind.

If toFind cannot be found, it matches the largest value in intervalToSearch that is less than or equal to toFind.

Example  

"3", located in the A8 cell, is the value to find. B1:B6 is the interval to search. C1:C6 is the return interval. The B3 cell contains the value to find. The corresponding value in the return interval is in the C3 cell, that is, "697".



See also 

FINDCELL
LOOKUP

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Formulas

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)