View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Vlookup and Hlookup

You can use MATCH to find the column number, like this:

=MATCH("Start date",1:1,0)

if your header is in row 1, but the start date column may vary. Then
substitute this (without the = sign) as the 3rd parameter of your
VLOOKUP. This assumes that the lookup column in your table is A, so
you may need to subtract a constant from the MATCH value if it
differs.

Hope this helps.

Pete

On Jan 15, 4:17*pm, Eric D wrote:
Is it possible to have a formula use both vlookup and hlookup together?

for example if i have a columns and rows that could change, but i have
labels in those that remain constant. *Can i do a hlookup to find correct
column and then a vlookup to go to the right row to retrieve one value?

--
Eric