lookup H&V...or match...index???

K

Kevin W

Hi,

I probably have 30 or so columns and 200 rows. For simplicity if I have:

A B C D E F
1 Blue Green Red Orange Purple
2 100 2 4 6 3 5
3 200 8 9 5 7 2
4 300 5 8 1 3 2

The names of the columns are colors and the names of the rows are numbers
(and they are all known beforehand).

What formula do I need to retrieve the value of the cell that corresponds to
Orange and 200 (so I want to retrieve the number 7)?

Thanks!
 
M

Michael_R

It is either

=VLOOKUP(200,A:F,5,FALSE)
(5 being the 5th column in the range)

or

=HLOOKUP("Orange",1:4,3,FALSE)
(3 being the 3rd row in the range)
 
M

Ms-Exl-Learner

Try this…

=SUMPRODUCT((C1:G1="ORANGE")*(B2:B4=200)*(C2:G4))

Or

Put this formula in I2 cell
=SUMPRODUCT((C1:G1=I1)*(B2:B4=J1)*(C2:G4))

In I1 cell type “Orange†and J1 cell type “200â€.
 
E

Eduardo

Hi,
try

=INDEX(B3:F5,MATCH(I1,A3:A5,0),MATCH(I2,B2:F2,0))

index(B3:F5 is where the information to be retrieved is

match(I1, A3:A5 = I1 is where I enter 200 and A3:A5 the range where the
values are

match(I2,B2:F2 = I2 is where I typed orange and B2:F2 is the range where
your colors are

change ranges and cells to fit your needs
 
×

מיכ×ל (מיקי) ×בידן

....and one more:
=VLOOKUP(200,A1:F4,MATCH("Orange",A1:F1,),)
[While cell F4 us the lowest-right cell of the table]
Micky
 

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

Similar Threads

Arriving at totals 2
Find value based on two lookup values 2
IF AND OR STATEMENT 3
match 3
Return last non-blank cell in column 3
Paragraph numbering in Word 1
LOOKUP 2
Two Totals from the same column 2

Top