View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stephen Christian[_2_] Stephen Christian[_2_] is offline
external usenet poster
 
Posts: 4
Default hlookup- move range by 2 rows with fill.

Ihave this formula:

=HLOOKUP('Hlookup table'!C2,'Hlookup table'!D2:O3,2)

as I scroll I would like the lookup value and the range to increment by 2,
so the next row would be:

=HLOOKUP('Hlookup table'!C4,'Hlookup table'!D4:O5,2),

the following offset formula returns the correct lookup value:

=OFFSET('Hlookup table'!C$2,(ROW()*2)-6,0)

Can i use the offset to move the range? I was try to solve a lookup problem
where i had problens sorting the data into ascending order and returning them
to their orginal position for other calculations.

Thanks

Stephen Christian