The document describes using INDEX and MATCH formulas to retrieve data from a pivot table and populate it into a flat table. INDEX returns a value from a reference table using row and column numbers. MATCH returns the position of a value within a range which can then be used as the row or column number in INDEX. This allows data to be pulled from the pivot table into the flat table dynamically.
3. INDEX(array,row_num,column_num)
Returns a value from within a table or range.
=INDEX(A6:E21,2,3) 848,221.00
MATCH (lookup_value,lookup_array,[match_type])
Returns the relative position of a specified item in a range.
Use MATCH function to provide a value for the ROW_NUM or
COLUMN_NUM argument of the INDEX function.
match_type = -1,0,1 (default is 1)
-1: smallest value >= lookup value (descending order)
0: first value that = lookup value (any order)
1: largest value <= lookup value (ascending order)
=MATCH(A7,$A$6:$A$21,0) 2
=MATCH(C6,$A$6:$E$6,0) 3
Test area: change entries in highlighted area.
Note: the second formula returns 0 instead of #N/A.
80 61260 #N/A
100 62260 848,221.00