These notes explain a particular use of spreadsheets: looking up results which have already been calculated. There is quite a collection of Lookup functions available, but Excel @ Mathematics materials only cover Excel techniques which assist mathematical investigation, so VLOOKUP (used in the Happy Numbers investigation) is the main topic here.
VLOOKUP: Looks down the first column of a block (range) for a specified value, then returns a value further along that same row.
|
For example:
|
|
= INDEX ( B6 : D10, 3, 2)
Would return the value in the third row and second column of the range B6 : D10. This can be useful when the row and column values are variables.
MATCH
operates on a single row or on a single column. It returns the values position along that row or column.
= MATCH ( 63, A2 : A11, 0 )
Would report that 63 was the seventh item in that line of values, A2 : A11 The 0 following the range reference, causes only an exact match to be reported.