Você está na página 1de 5

Example Workbook For Tables And Lookups

By Chip Pearson chip@cpearson.com www.cpearson.com 05-Jan-08 www.cpearson.com/Excel/TablesAndLookups.aspx

Example Data apples 100 101 102 103 104 oranges 105 106 107 108 109 pears 110 111 112 113 114 plums 115 116 117 118 119 raisins 120 121 122 123 124

abby beth callie dora elaine

The defined name Table refers to the entire table, including the row and column headers. The defined name InnerTable refers to only the data within the table (colored in red).

Returning A Row Or Column From A Table

Returning a row from Table with an Array Formula, using row number. Includes row and column labels Row Number 5 dora 103 108 113 118

Returning a row from InnerTable with an Array Formula, using row number. Excludes row and column la Row Number 5 104 109 114 119 124

Returning a column from Table with an Arrray Formula. Column Number 3 oranges 105 106 107 108 109

Returning a column from InnerTable wit Column Number

Returning a row from Table with an Array Formula, using row label. Includes row and column labels. Row Label callie callie 102 107 112 117

Returning a row from InnerTable with an Array Formula, using row label. Excludes row and column labe Row Label dora 103 108 113 118 123

Returning a column from Table with an Array Formula, based on Column Label. Returning a column from Inn Column Label plums plums 115 Column Label

116 117 118 119

Calculations On Rows Or Columns Of A Table


Calculating SUM, MIN, or MAX Of A Row In InnerTable. SUM MIN Row Label callie 560 102 Calculating SUM, MIN, or MAX Of A Column In InnerTable. SUM MIN Column Label oranges 535 105

MAX 122

MAX 109

Last Value In A Row, based on position Row 4 122 Last Value In A Row, based on row label Row Label callie 122 Last Value In A Column, based on position Column 5 123 Last Value In A Column, base on column label Column Label plums 119

Double Lookups
This returns a value in Table from a row value and a column value Row Label dora 118 Column Label plums

Type aa bb cc dd ee

Value 11 22 33 44 55 Arbitrary Lookups

Left Lookups Find Type given Value Value 44

Upper Lookups dd Type Value aa 11

Find Type based on Value Value 33

Name Annie Beth

Score 11 22

VLOOKUP returns the first match Value beth 22

Cathy Dana Annie Beth Annie Beth Cathy

33 44 55 66 77 88 99

Arbitrary Lookup returns a specified occurance match Value beth 88 Ordinal 3 Last Occurrence Lookup Value beth

88

Closest Match Lookup


Score -8.5 1.6 -9.3 7.4 4.6 3.3 5.1 6.8 Closest Match Lowest Item Not Less Than Value Value 5.1 5.1 Closest Match Greatest But Not More Than Value 7.4 7.4 Closest Match Absolute Value 5 5.1

olumn headers.

ncludes row and column labels. 123

er. Excludes row and column labels.

g a column from InnerTable with an Array Formula. 3 110 111 112 113 114

des row and column labels. 122

Excludes row and column labels.

Returning a column from InnerTable with an Array Formula, based on Column Label. apples 100

101 102 103 104

bb 22 based on Value cc

cc 33

dd 44

ee 55

Você também pode gostar