lookup on 2 (and 3!) dimensions

  • Thread starter Thread starter bodhi2.71828
  • Start date Start date
B

bodhi2.71828

I have a table with three dimensions (day, name, size).

Row 1 has "size" headings (e.g. "10x10", "20x20", "30x30").
And Columns A & B look like this:

Sun Abby
Sun Bob
Sun Chris
Mon Abby
Mon Bob
Mon Chris
Tue Abby
Tue Bob
etc...

Is there a formula that will give me the data for, say, "Monday" &
"Bob" & column F? I would usually use VLOOKUP with MATCH, but having
another dimension in column B is throwing me for a loop.

What about a formula for all three ... e.g. "Tuesday" & "Abby" &
"30x30"?

Thanks.
 
=INDEX(C2:C20,MATCH(1,(A2:A20="Tue")*(B2:B20="Bob"),0))

and

=INDEX(A2:N20,MATCH(1,(A2:A20="Tue")*(B2:B20="Bob"),0),MATCH("20x20",1:1,0))

which are array formulae, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Adjust ranges to suit.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top