cellMatrix.net

Spreadsheet Modeling and Related Topics

Index-Match Formula

Recently I've had to use formulas that perform left-sided lookups at work. The combination of Index and Match in a formula will do so, but I always seem to have a hard time remembering how to build the formula. Recently I put together this color-coded example to help:

image

The formula in cell C8 looks like this:

=INDEX(Range_of_Values_To_Look_Up,MATCH(Look_Up_Value,Range_of_Look_Up_Values,0),1)

or

=INDEX(B2:B6,MATCH(B8,D2:D6,0),1)
Posted on Thursday, March 20, 2008 | Comments (1) | Permalink
Comments

Very nice, but it’s too bad you can’t color-code the different parts of the formula as well, to match the key. Maybe something to suggest to MS for the next release?

Thx,
JP

Posted by JP  on  05/20  at  06:44 PM
Page 1 of 1 pages

Comment Entry Form

User Information

Name: (Required)

E-Mail Address: (Optional)

Location: (Optional)

Web Site Address: (Optional)

Comment Formatting Reference
Add VBA Code:
<pre>some code here</pre>
Linking:
[url]http://www.example.com/[/url]
[url=http://www.example.com/]my site[/url]
Text Formatting
[size=4]Some larger text[/size]
[color=green]Some green text[/color]
[b]Some bold text[/b]
[i]Some italic text[/i]
Enter Comment Below

Personalization Options
Remember my personal information
Notify me of follow-up comments?

Next entry: Comparing Revenue Growth - Gross vs. Net

Previous entry: SUMPRODUCT Function to Drive Financial Statements

<< Back to main

Statistics

  • Total Entries - 136
  • Current Viewers - 25

Categories

Entries by Day

Sep - 2010
S M T W T F S
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 1 2

Recent Comments

Syndicate