3 One way lookup vertical (lookup Left) 4 One way lookup horizontal 5 One way lookup with lookup column and match column orientated differently 6 INDEX & MATCH to do approximate lookup on table sorted Descending 7 Lookup whole row 8 Lookup whole column 9 Lookup Cell Reference 10 Dynamic Range 11 Lookup from more than one table when tables are on same sheet as formula 12 Lookup from more than one table when tables are on a different sheet than the formula: CHOOSE, INDEX, MATCH functions 13 INDEX and ROWS to Flip a Table 14 Get Amount in Next Bracket 15 Select a Random Value 16 Lookup first non-blank value 17 Handle arrays that require CSE 18 Basic lookup tool used in complex array formulas for extracting data MATCH function is a lookup function that returns the relative position of an item in a list lookup_value is the value you tell the match function to lookup lookup_array is the list that you look an item up in [match_type] tells the MATCH what sort of lookup to do: 1 or empty = aproximate match; table sorted ascending; first bigger value bumped into then jump back one position, if value is smaller than first item returns #N/A, if bigger than last it returns last value 2 = extact match, if duplicates, it finds first one only, can't find it it shows #N/A -1 = aproximate match; table sorted descending; first smaller value bumped into then jump back one position, if value is bigger than first item returns #N/A, if smaller than last it returns last value Match w 0 (Exact Match) Only 1 in list Dups Not in List MATCH can do vertical or horizontal Lookup Jo Tom Sue Jo Relative Position List 1 List 1 Joe Jo Joe Jo Tom Sioux Sioux Sioux Tom MATCH with 1 or Empty & Sorted Ascending (Approximate Match - 1st Biggest & Jump Back) Fits in Gap Finds Exact Value Smaller Than First Bigger than Last MATCH can do vertical or horizontal Lookup $150.00 $100.00 -$400.00 $20,000.00 $50.00 Relative Position List 1 List 1 $0.00 $100.00 $0.00 $100.00 100 <= x < 500 $500.00 $1,000.00 $2,500.00 $5,000.00 $10,000.00 MATCH with -1 & Sorted Descending (Approximate Match - 1st Smallest & Jump Back) Fits in Gap Finds Exact Value Bigger Than First Smaller than Last MATCH can do vertical or horizontal Lookup $1,500.00 $2,500.00 $20,000.00 -$10.00 $9,000.00 Relative Position List 1 List 1 $10,000.00 $5,000.00 $10,000.00 $5,000.00 $2,500.00 $1,000.00 $500.00 $100.00 $0.00 MATCH function is a lookup function that returns the relative position of an item in a list lookup_value is the value you tell the match function to lookup lookup_array is the list that you look an item up in [match_type] tells the MATCH what sort of lookup to do: 1 or empty = aproximate match; table sorted ascending; first bigger value bumped into then jump back one position, if value is smaller than first item returns #N/A, if bigger than last it returns last value 2 = extact match, if duplicates, it finds first one only, can't find it it shows #N/A -1 = aproximate match; table sorted descending; first smaller value bumped into then jump back one position, if value is bigger than first item returns #N/A, if smaller than last it returns last value Tom Sioux Sioux Sioux Tom List 2 0 1% 2% 4% 5% 6% 8% $500.00 $1,000.00 $2,500.00 $5,000.00 $10,000.00 $2,500.00 $1,000.00 $500.00 $100.00 $0.00 MATCH function is a lookup function that returns the relative position of an item in a list lookup_value is the value you tell the match function to lookup lookup_array is the list that you look an item up in [match_type] tells the MATCH what sort of lookup to do: 1 or empty = aproximate match; table sorted ascending; first bigger value bumped into then jump back one position, if value is smaller than first item returns #N/A, if bigger than last it returns last value 2 = extact match, if duplicates, it finds first one only, can't find it it shows #N/A -1 = aproximate match; table sorted descending; first smaller value bumped into then jump back one position, if value is bigger than first item returns #N/A, if smaller than last it returns last value Match w 0 (Exact Match) Only 1 in list Dups Not in List MATCH can do vertical or horizontal Lookup Jo Tom Sue Jo Relative Position 2 3 #N/A 2 List 1 List 1 Joe Jo Joe Jo Tom Sioux Sioux Sioux Tom MATCH with 1 or Empty & Sorted Ascending (Approximate Match - 1st Biggest & Jump Back) Fits in Gap Finds Exact Value Smaller Than First Bigger than Last MATCH can do vertical or horizontal Lookup $150.00 $100.00 -$400.00 $20,000.00 $50.00 Relative Position 2 2 #N/A 7 1 List 1 List 1 $0.00 $100.00 $0.00 $100.00 $500.00 $1,000.00 $2,500.00 $5,000.00 $10,000.00 MATCH with -1 & Sorted Descending (Approximate Match - 1st Smallest & Jump Back) Fits in Gap Finds Exact Value Bigger Than First Smaller than Last MATCH can do vertical or horizontal Lookup $1,500.00 $2,500.00 $20,000.00 -$10.00 $9,000.00 Relative Position 3 3 #N/A 7 1 List 1 List 1 $10,000.00 $5,000.00 $10,000.00 $5,000.00 $2,500.00 $1,000.00 $500.00 $100.00 $0.00 MATCH function is a lookup function that returns the relative position of an item in a list lookup_value is the value you tell the match function to lookup lookup_array is the list that you look an item up in [match_type] tells the MATCH what sort of lookup to do: 1 or empty = aproximate match; table sorted ascending; first bigger value bumped into then jump back one position, if value is smaller than first item returns #N/A, if bigger than last it returns last value 2 = extact match, if duplicates, it finds first one only, can't find it it shows #N/A -1 = aproximate match; table sorted descending; first smaller value bumped into then jump back one position, if value is bigger than first item returns #N/A, if smaller than last it returns last value Tom Sioux Sioux Sioux Tom List 2 0 1% 2% 4% 5% 6% 8% $500.00 $1,000.00 $2,500.00 $5,000.00 $10,000.00 $2,500.00 $1,000.00 $500.00 $100.00 $0.00 INDEX is a lookup function that can do a two-way lookup. array argument is the two dementioanl table (both a row and a column - that is the two-way part of it) row_num argument tells index which row to look at column_num argument tells index which colum to look at The intersection of the row and column is the value that is returned to the cell or formula Discount Table PartID/Qty 1 5 25 100 Part1 13.00% 15.00% 17.00% 19.00% Part2 14.00% 16.00% 18.00% 20.00% Part3 15.00% 17.00% 19.00% 21.00% Part4 16.00% 18.00% 20.00% 22.00% Part5 17.00% 19.00% 21.00% 23.00% Part6 18.00% 20.00% 22.00% 24.00% PartID Part3 <<== Row Qty 5 <<==Column Discount <<== Returned Value INDEX is a lookup function that can do a two-way lookup. array argument is the two dementioanl table (both a row and a column - that is the two-way part of it) row_num argument tells index which row to look at column_num argument tells index which colum to look at The intersection of the row and column is the value that is returned to the cell or formula INDEX is a lookup function that can do a two-way lookup. array argument is the two dementioanl table (both a row and a column - that is the two-way part of it) row_num argument tells index which row to look at column_num argument tells index which colum to look at The intersection of the row and column is the value that is returned to the cell or formula Discount Table PartID/Qty 1 5 25 100 Part1 13.00% 15.00% 17.00% 19.00% Part2 14.00% 16.00% 18.00% 20.00% Part3 15.00% 17.00% 19.00% 21.00% Part4 16.00% 18.00% 20.00% 22.00% Part5 17.00% 19.00% 21.00% 23.00% Part6 18.00% 20.00% 22.00% 24.00% PartID Part4 4 <<== Row Qty 22 2 <<==Column Discount 18.00% <<== Returned Value INDEX is a lookup function that can do a two-way lookup. array argument is the two dementioanl table (both a row and a column - that is the two-way part of it) row_num argument tells index which row to look at column_num argument tells index which colum to look at The intersection of the row and column is the value that is returned to the cell or formula Use INDEX as a substitute for VLOOKUP when the value you want to return is to the left of the lookup column. Product Price Description Boom01 $15.00 Flying Range is 10 Boom02 $30.00 Flying Range is 20 Boom03 $40.00 Flying Range is 50 Boom04 $45.00 Flying Range is 60 Boom05 $65.00 Flying Range is 70 Boom06 $69.00 Flying Range is 80 Boom07 $100.00 Flying Range is 85 Boom08 $110.00 Flying Range is 110 Boom09 $165.00 Flying Range is 160 1-Way Lookup Vertical: Lookup Column to Left Description Product Flying Range is 160 **[column_num] argument is optional. When you have a one way lookup, row_num can be used for the relative position of the item in a list (row or column). Use INDEX, MAX & MATCH to find student with max score Name Score Student 1 53 Student 2 18 Student 3 99 Student 4 45 Student 5 19 Student 6 27 Student 7 85 Student 8 0 Max Lookup Name w Max Score 99 <== lookup name w max score, no duplicates **[column_num] argument is optional. When you have a one way lookup, row_num can be used for the relative position of the item in a list (row or column). Use INDEX as a substitute for VLOOKUP when the value you want to return is to the left of the lookup column. Product Price Description Boom01 $15.00 Flying Range is 10 Boom02 $30.00 Flying Range is 20 Boom03 $40.00 Flying Range is 50 Boom04 $45.00 Flying Range is 60 Boom05 $65.00 Flying Range is 70 Boom06 $69.00 Flying Range is 80 Boom07 $100.00 Flying Range is 85 Boom08 $110.00 Flying Range is 110 Boom09 $165.00 Flying Range is 160 1-Way Lookup: Lookup Column to Left Description Product Flying Range is 80 Boom06 **[column_num] argument is optional. When you have a one way lookup, row_num can be used for the relative position of the item in a list (row or column). Use INDEX, MAX & MATCH to find student with max score Name Score Student 1 53 Student 2 18 Student 3 99 Student 4 45 Student 5 19 Student 6 27 Student 7 85 Student 8 0 Max Lookup Name w Max Score 99 Student 3 <== lookup name w max score **[column_num] argument is optional. When you have a one way lookup, row_num can be used for the relative position of Use INDEX, MIN & MATCH to find vendor name with low bid Products/Ven dors Vendor1 Vendor2 Vendor3 Vendor4 Vendor5 Low Bid Vendor for Low Bid Product1 $38.99 $48.60 $43.53 $40.08 $47.92 $38.99 1-Way Lookup Ranges Horizontal Product2 $57.68 $31.80 $52.78 $31.42 $55.19 $31.42 Product3 $53.32 $32.64 $37.69 $48.29 $41.59 $32.64 **Note: If it is a one way lookup, INDEX is Product4 $35.20 $40.55 $32.65 $36.81 $41.14 $32.65 programmed to use the row_num for Product5 $56.72 $47.16 $36.42 $49.56 $39.25 $36.42 either a row number or column number Product6 $47.91 $35.08 $51.13 $49.84 $42.12 $35.08 (because it is only a 1-way lookup). Product7 $34.81 $35.11 $48.63 $33.32 $37.83 $33.32 Product8 $42.25 $35.76 $58.60 $46.28 $40.53 $35.76 Product9 $40.14 $42.31 $37.62 $59.97 $42.57 $37.62 Product10 $36.48 $40.79 $53.24 $51.01 $51.24 $36.48 Product11 $38.57 $40.06 $54.71 $39.70 $54.73 $38.57 Product12 $52.66 $43.61 $59.98 $34.61 $52.65 $34.61 1-Way Lookup Ranges Horizontal **Note: If it is a one way lookup, INDEX is programmed to use the row_num for either a row number or column number (because it is only a 1-way lookup). Use INDEX, MIN & MATCH to find vendor name with low bid Products/Ven dors Vendor1 Vendor2 Vendor3 Vendor4 Vendor5 Low Bid Vendor for Low Bid Product1 $38.99 $48.60 $43.53 $40.08 $47.92 $38.99 Vendor1 1-Way Lookup Ranges Horizontal Product2 $57.68 $31.80 $52.78 $31.42 $55.19 $31.42 Vendor4 Product3 $53.32 $32.64 $37.69 $48.29 $41.59 $32.64 Vendor2 **Note: If it is a one way lookup, INDEX is Product4 $35.20 $40.55 $32.65 $36.81 $41.14 $32.65 Vendor3 programmed to use the row_num for Product5 $56.72 $47.16 $36.42 $49.56 $39.25 $36.42 Vendor3 either a row number or column number Product6 $47.91 $35.08 $51.13 $49.84 $42.12 $35.08 Vendor2 (because it is only a 1-way lookup. Product7 $34.81 $35.11 $48.63 $33.32 $37.83 $33.32 Vendor4 Product8 $42.25 $35.76 $58.60 $46.28 $40.53 $35.76 Vendor2 Product9 $40.14 $42.31 $37.62 $59.97 $42.57 $37.62 Vendor3 Product10 $36.48 $40.79 $53.24 $51.01 $51.24 $36.48 Vendor1 Product11 $38.57 $40.06 $54.71 $39.70 $54.73 $38.57 Vendor1 Product12 $52.66 $43.61 $59.98 $34.61 $52.65 $34.61 Vendor4 1-Way Lookup Ranges Horizontal **Note: If it is a one way lookup, INDEX is programmed to use the row_num for either a row number or column number (because it is only a 1-way lookup. Description 1-Way Lookup: Vertical and Horizontal Flying Range is 10 Description Product Flying Range is 20 Flying Range is 50 Flying Range is 50 Flying Range is 60 Product Boom01 Boom02 Boom03 Boom04 Boom05 Boom06 Flying Range is 70 Flying Range is 80 **Note: If it is a one way lookup, INDEX is Flying Range is 85 programmed to use the row_num for Flying Range is 110 either a row number or column number Flying Range is 160 (because it is only a 1-way lookup. Boom07 Boom08 Boom09 Description 1-Way Lookup: Vertical and Horizontal Flying Range is 10 Description Product Flying Range is 20 Flying Range is 50 Boom03 Flying Range is 50 Flying Range is 60 Product Boom01 Boom02 Boom03 Boom04 Boom05 Boom06 Flying Range is 70 Flying Range is 80 **Note: If it is a one way lookup, INDEX is Flying Range is 85 programmed to use the row_num for Flying Range is 110 either a row number or column number Flying Range is 160 (because it is only a 1-way lookup. Boom07 Boom08 Boom09 INDEX and MATCH to lookup in a table that is sorted decending order Select Rainfall Rate 4 2-Way lookup Pipe Size 11 MATCH with -1 (list sorted Descending) Square Footage MATCH with 1 or empty (list sorted Ascending) Rainfall Rate Pipe Size (inches) 1 2 3 4 5 6 15 238,000 119,000 79,333 59,500 47,600 39,650 12 133,200 66,600 44,400 33,300 26,650 22,200 10 82,800 41,400 27,600 20,700 16,580 13,800 8 46,000 23,000 15,330 11,500 9,200 7,670 6 21,400 10,700 7,133 5,350 4,280 3,566 5 13,360 6,680 4,453 3,340 2,672 2,227 4 7,520 3,760 2,506 1,880 1,504 1,253 3 3,288 1,644 1,096 822 657 548 1 0 0 0 0 0 0 INDEX and MATCH to lookup in a table that is sorted decending order Select Rainfall Rate 4 2-Way lookup Pipe Size 11 MATCH with -1 (list sorted Descending) Square Footage 33,300 MATCH with 1 or empty (list sorted Ascending) Rainfall Rate Pipe Size (inches) 1 2 3 4 5 6 15 238,000 119,000 79,333 59,500 47,600 39,650 12 133,200 66,600 44,400 33,300 26,650 22,200 10 82,800 41,400 27,600 20,700 16,580 13,800 8 46,000 23,000 15,330 11,500 9,200 7,670 6 21,400 10,700 7,133 5,350 4,280 3,566 5 13,360 6,680 4,453 3,340 2,672 2,227 4 7,520 3,760 2,506 1,880 1,504 1,253 3 3,288 1,644 1,096 822 657 548 1 0 0 0 0 0 0 Use INDEX, MATCH and SUM to retrieve a whole column of values and add them 0 (zero) or empty in row_num argument will return a whole column of values (all rows or entire column) Month to add Jan Total Jan Jan Feb Mar Apr 1 4 4 5 3 4 12 1 1 4 2 2 Use INDEX, MATCH and SUM to retrieve a whole row of values and add them 0 (zero) or empty in column_num argument will return a whole row of values (all columns or entire row) Month to add Feb Total Feb Jan 1 3 1 Feb 4 4 4 Mar 4 12 2 Apr 5 1 2 Use INDEX, MATCH and SUM to retrieve a whole column of values and add them 0 (zero) or empty in row_num argument will return a whole column of values (all rows or entire column) Month to add Mar Total Mar 18 Jan Feb Mar Apr 1 4 4 5 3 4 12 1 1 4 2 2 Use INDEX, MATCH and SUM to retrieve a whole row of values and add them 0 (zero) or empty in column_num argument will return a whole row of values (all columns or entire row) Month to add Jan Total Jan 5 Jan 1 3 1 Feb 4 4 4 Mar 4 12 2 Apr 5 1 2 From the examples in the book, the homework, examples in class, examples from DVD video, or online research, or from an example you thought up, create two examples of "lookup" using the INDEX and MATCH functions together. INDEX to lookup cell reference and create dynamic range works well (better than Table feature) when you have an area that will expand and contract. When pasting Dynamic Range Formula ( Defined Name ) into chart: 1) ChartTools Design Ribbon tab "Select Data" button in Data group, 2) then edit the "series" and "category", carefully highlight only cell range (leave "sheet reference") and replace selected range with Defined Name, 3) after you enter Defined Name Defined Range Formula into dialog box and look back later the "sheet reference" will be replaced by a workbook reference (in total you will see a workbook reference and the Defined Name). Lookingup Cell Reference Date Sales Dynamic ranges for charts 5/13/2011 1 Date 5/14/2011 3 Sales 5/15/2011 5 5/16/2011 7 5/17/2011 9 5/18/2011 2 INDEX to lookup cell reference and create dynamic range works well (better than Table feature) when you have an area that will expand and contract. When pasting Dynamic Range Formula ( Defined Name ) into chart: 1) ChartTools Design Ribbon tab "Select Data" button in Data group, 2) then edit the "series" and "category", carefully highlight only cell range (leave "sheet reference") and replace selected range with Defined Name, 3) after you enter Defined Name Defined Range Formula into dialog box and look back later the "sheet reference" will be replaced by a workbook reference From the examples in the book, the homework, examples in class, examples from DVD video, or online research, or from an example you thought up, create two examples of "lookup" using the INDEX and MATCH functions together. INDEX to lookup cell reference and create dynamic range works well (better than Table feature) when you have an area that will expand and contract. When pasting Dynamic Range Formula ( Defined Name ) into chart: 1) ChartTools Design Ribbon tab "Select Data" button in Data group, 2) then edit the "series" and "category", carefully highlight only cell range (leave "sheet reference") and replace selected range with Defined Name, 3) after you enter Defined Name Defined Range Formula into dialog box and look back later the "sheet reference" will be replaced by a workbook reference (in total you will see a workbook reference and the Defined Name). Lookingup Cell Reference Date Sales Dynamic ranges for charts 5/3/2011 10 Date 5/3/2011 5/4/2011 15 Sales 10 5/5/2011 16 5/6/2011 17 5/7/2011 18 5/8/2011 27 5/9/2011 20 5/10/2011 15 5/11/2011 15 5/12/2011 15 $0.00 $5.00 $10.00 $15.00 $20.00 $25.00 $30.00 Sales INDEX to lookup cell reference and create dynamic range works well (better than Table feature) when you have an area that will expand and contract. When pasting Dynamic Range Formula ( Defined Name ) into chart: 1) ChartTools Design Ribbon tab "Select Data" button in Data group, 2) then edit the "series" and "category", carefully highlight only cell range (leave "sheet reference") and replace selected range with Defined Name, 3) after you enter Defined Name Defined Range Formula into dialog box and look back later the "sheet reference" will be replaced by a workbook reference Sales Product 1 Pro Amount of Sale Table Discount ? Discount ? $0.00 0.00% Product 1 $3,225.00 $500.00 1.00% Product 3 $2,014.00 $1,500.00 2.00% Product 1 $1,264.00 $5,000.00 3.00% Product 1 $1,755.00 Product 3 $4,609.00 Product 3 $9,300.00 Product 3 $8,850.00 Product 2 Product 1 $2,641.00 $0.00 0.00% Product 1 $8,028.00 $500.00 1.50% Product 1 $3,288.00 $1,500.00 2.50% Product 2 $1,434.00 $5,000.00 4.00% Product 1 $2,295.00 Product 2 $3,808.00 Product 2 $8,949.00 Product 2 $489.00 Product 3 Product 1 $7,984.00 $0.00 0.00% Product 1 $9,610.00 $500.00 0.50% Product 1 $5,376.00 $1,500.00 1.00% Product 3 $5,596.00 $5,000.00 1.50% INDEX is a lookup function that can do a two-way lookup. Product 1 1 reference argument is the two dimensional table (or a 1-way lookup) - references must be cell references and must be on the same sheet as the formula. Tables must be placed in numerical order, separated by commas and contained in parenthesis. Like: (ref1,ref2,ref3...) Product 2 2 row_num argument tells index which row to look at Product 3 3 column_num argument tells index which colum to look at [area_num] argument tells the function which table to look at and must be a number 1, 2, 3, etc. If tables are on different sheets, use the CHOOSE function in the array argument of INDEX. CHOOSE function: 1) CHOOSE can return a value or a range from a list of 1 to 254 arguments. 2) =CHOOSE(index_num, value1,value2, ) 3) When the "lookup_value" / index_number is whole number between 1 and 254, CHOOSE can be a good lookup tool 4) If index_num is 1, then value1 is used ... If index_num is 2, then value2 is used 5) value can be a number, or a formula/function, "text" (in quotes), a range, cell references, or defined names Pro Amount of Sale Product 1 $9,027.00 INDEX is a reference argument is the two row_num column_n [area_nu If tables CHOOSE
When the "lookup_v If index_nu value can be a Product 1 Pro Amount of Sale Table Discount ? Discount ? $0.00 0.00% Product 1 $3,225.00 1 64.5 64.5 0.02 $500.00 1.00% Product 3 $2,014.00 3 20.14 20.14 0.01 $1,500.00 2.00% Product 1 $1,264.00 1 12.64 12.64 0.01 $5,000.00 3.00% Product 1 $1,755.00 1 35.1 35.1 0.02 Product 3 $4,609.00 3 46.09 46.09 0.01 Product 3 $9,300.00 3 139.5 139.5 0.015 Product 3 $8,850.00 3 132.75 132.75 0.015 Product 2 Product 1 $2,641.00 1 52.82 52.82 0.02 $0.00 0.00% Product 1 $8,028.00 1 240.84 240.84 0.03 $500.00 1.50% Product 1 $3,288.00 1 65.76 65.76 0.02 $1,500.00 2.50% Product 2 $1,434.00 2 21.51 21.51 0.015 $5,000.00 4.00% Product 1 $2,295.00 1 45.9 45.9 0.02 Product 2 $3,808.00 2 95.2 95.2 0.025 Product 2 $8,949.00 2 357.96 357.96 0.04 Product 2 $489.00 2 0 0 0 Product 3 Product 1 $7,984.00 1 239.52 239.52 0.03 $0.00 0.00% Product 1 $9,610.00 1 288.3 288.3 0.03 $500.00 0.50% Product 1 $5,376.00 1 161.28 161.28 0.03 $1,500.00 1.00% Product 3 $5,596.00 3 83.94 83.94 0.015 $5,000.00 1.50% INDEX is a lookup function that can do a two-way lookup. Product 1 1 reference argument is the two dimensional table (or a 1-way lookup) - references must be cell references and must be on the same sheet as the formula. Tables must be placed in numerical order, separated by commas and contained in parenthesis. Like: (ref1,ref2,ref3...) Product 2 2 row_num argument tells index which row to look at Product 3 3 column_num argument tells index which colum to look at [area_num] argument tells the function which table to look at and must be a number 1, 2, 3, etc. If tables are on different sheets, use the CHOOSE function in the array argument of INDEX. CHOOSE function: 1) CHOOSE can return a value or a range from a list of 1 to 254 arguments. 2) =CHOOSE(index_num, value1,value2, ) 3) When the "lookup_value" / index_number is whole number between 1 and 254, CHOOSE can be a good lookup tool 4) If index_num is 1, then value1 is used ... If index_num is 2, then value2 is used 5) value can be a number, or a formula/function, "text" (in quotes), a range, cell references, or defined names Pro Amount of Sale Product 1 $188.00 INDEX refere nce argum row_n colum [area_ If CHOO
When the If index_ value can be Score Decimal Grade ROWS from 6 to 1 big # to small 450 4 6 425 3.7 5 350 3 4 300 2.5 3 270 2 2 0 0 1 Use INDEX to flip (invert) a range 180 degrees: =INDEX(A$2:A$7,ROWS(A2:A$7)) Score Decimal Grade Score Decimal Grade Sequential Number w Expandable Range 401 1 2 3 4 5 6 ROWS from 6 to 1 big # to small ROWS from 1 to 6 small # to big =ROWS(A2:A$7) 1 =ROWS(I$2:I2) =ROWS(A3:A$7) 2 =ROWS(I$2:I3) =ROWS(A4:A$7) 3 =ROWS(I$2:I4) =ROWS(A5:A$7) 4 =ROWS(I$2:I5) =ROWS(A6:A$7) 5 =ROWS(I$2:I6) =ROWS(A7:A$7) 6 =ROWS(I$2:I7) Sequential Number w Expandable Range Sequential Number w Contracting Range 6 5 4 3 2 1 Score Decimal Grade ROWS from 6 to 1 big # to small 450 4 6 =ROWS(A2:A$7) 425 3.7 5 =ROWS(A3:A$7) 350 3 4 =ROWS(A4:A$7) 300 2.5 3 =ROWS(A5:A$7) 270 2 2 =ROWS(A6:A$7) 0 0 1 =ROWS(A7:A$7) Use INDEX to flip (invert) a range 180 degrees: =INDEX(A$2:A$7,ROWS(A2:A$7)) Score Decimal Grade Score Decimal Grade 0 0 401 3 270 2 300 2.5 350 3 425 3.7 450 4 ROWS from 1 to 6 small # to big 1 =ROWS(I$2:I2) 2 =ROWS(I$2:I3) 3 =ROWS(I$2:I4) 4 =ROWS(I$2:I5) 5 =ROWS(I$2:I6) 6 =ROWS(I$2:I7) Use INDEX & MATCH to find how much to get to next bracket Sales Amount To Get To Next Bracket $5,555.00 Commission Table Sales Rate Commission from Previous Bracket $0.00 0.00% $5,000.00 0.50% 0 $10,000.00 1.00% $25.00 $20,000.00 2.00% $125.00 $30,000.00 3.00% $325.00 $50,000.00 6.00% $925.00 $100,000.00 10.00% $3,925.00 Use INDEX & MATCH to find how much to get to next bracket Sales Amount To Get To Next Bracket $37,500.00 $12,500.00 Commission Table Sales Rate Commission from Previous Bracket $0.00 0.00% $5,000.00 0.50% 0 $10,000.00 1.00% $25.00 $20,000.00 2.00% $125.00 $30,000.00 3.00% $325.00 $50,000.00 6.00% $925.00 $100,000.00 10.00% $3,925.00 Use INDEX and RANDBETWEEN to randomly select a name Names Name Selected: Sioux Dave Isaac Random Number between 1 and 5 Sue 5 Luong F9 key evaluates or recalculates the whole sheet Use INDEX and RANDBETWEEN to randomly select a name Names Name Selected: Sioux Luong Dave Isaac Random Number between 1 and 5 Sue 1 Luong F9 key evaluates or recalculates the whole sheet Get First non-blank Array Formulas require Ctrl + Shift + Enter 1 2 1 6 5 2 2 13 5 1 INDEX can handle array without Ctrl + Shift + Enter 1 2 1 6 4 5 2 2 13 5 1 Get First non-blank Array Formulas require Ctrl + Shift + Enter 1 1 2 1 6 5 5 2 2 13 13 5 1 INDEX can handle array without Ctrl + Shift + Enter 1 1 2 1 6 5 5 2 2 13 13 5 1 Use INDEX, MAX & MATCH to find student with max score Name Score Student 1 85 3 3 Student 2 99 1 1 Student 3 99 2 2 Student 4 45 5 5 Student 5 19 7 7 Student 6 27 6 6 Student 7 85 4 4 Student 8 0 8 8 Max Count Lookup Name w Max Score 99 2 Student 2 <== lookup name w max score, maybe duplicates Student 3 See these for more detail: Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value ... Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value ... Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value ... No Large Count Name 1 Name 2 Name 3 1 99 2 Student 2 Student 3 2 85 2 Student 1 Student 7 3 45 1 Student 4 See these videos for more detail: Excel Magic Trick 759: Array Formula To Sort List & Remove Duplicates - Dynamic Named Range Excel 2010 Magic Trick 672: AGGREGATE function Replaces SMALL Function Array Formula Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value ... Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value ... Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value ... 85 99 45 Excel Magic Trick 759: Array Formula To Sort List & Remove Duplicates - Dynamic Named Range Use INDEX, MAX & MATCH to find student with max score Name Score Student 1 85 3 3 Student 2 99 1 1 Student 3 99 2 2 Student 4 45 5 5 Student 5 19 7 7 Student 6 27 6 6 Student 7 85 4 4 Student 8 0 8 8 Max Count Lookup Name w Max Score 99 2 Student 2 <== lookup name w max score, maybe duplicates Student 3 See these for more detail: Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value ... Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value ... Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value ... No Large Count Name 1 Name 2 Name 3 1 99 2 Student 2 Student 3 2 85 2 Student 1 Student 7 3 45 1 Student 4 See these videos for more detail; Excel Magic Trick 759: Array Formula To Sort List & Remove Duplicates - Dynamic Named Range Excel 2010 Magic Trick 672: AGGREGATE function Replaces SMALL Function Array Formula Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value ... Excel Magic Trick 359: Part 2: Return Multiple Items From One Lookup Value ... Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value ... 85 99 45 Excel Magic Trick 759: Array Formula To Sort List & Remove Duplicates - Dynamic Named Range