View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
[email protected] Laura.Halderman@gmail.com is offline
external usenet poster
 
Posts: 1
Default Combining Hlookup and vlookup

On Jan 26, 7:20 pm, Max wrote:
One way - use index/match

Assume source table below is in A1:C4
January February
Hair 45 84
Beans 42 61
Prod3 72 29
(month col headers are text)

Assume you have the inputs in E2:F2 down
Beans January
Prod3 February

You could put in G2:
=INDEX($B$2:$C$4,MATCH(E2,$A$2:$A$4,0),MATCH(F2,$B $1:$C$1,0))
and copy down to return the cross-hair results.
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---

"Dale" wrote:
I am trying to use the vlookup and hlookup to "cross hair" a cell. I have
used this combination before but I cannot remember the formula. I have items
in the first column and a month identifier in the following columns. So I am
trying to look up Beans in column A with the production in columns that have
months listed in them, i.e. column B is January, column c is February, etc.


Thanks


Dale


Max,I had the exact same problem with my data set as Dale. I used
your recommendation, and problem solved!!! This post saved me tons of
time and frustration. Thank you so much for the clear and detailed
explanation!!!!

Laura