View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
johamshason via OfficeKB.com
 
Posts: n/a
Default Can a VLOOKUP use two items to search

Hey,

You can try using the array formula

=INDEX($B$1:$B$5,SMALL(IF($A$1:$A$5=$A$1,ROW($A$1: $A$5)),ROW(1:1)))



Natalie wrote:
I am trying to look up from a table -

Column 1 Column 2
H 1
H 2
Y 1
Y 2

I want to show in column 3 if Col 1 is H and Column 2 is 1 the Col 3 would
be £10
If Col 1 is H and col 2 is 2 then it would be £15?

I have a table with all the values for each one in?

Can anyone help?


--
Message posted via http://www.officekb.com