LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 153
Default HLOOKUP & VLOOKUP Combinded

I have tried Index & Match combined, but the data changes rows week to
week, and when I use the match formula it will only look for data along
the same line.


If I understand correctly, there are pairs of kid/date columns side by side.

As an example using Excel 2003, there are eight pairs in A1:P19, including the header row A1:P1.

In R1 is the kid to be matched.

In R2 is the date to be matched.

Then this formula seems to work:

=OFFSET($A$1,
MATCH($R$1,OFFSET($A$1,1,MATCH($R$2,A1:P1,0)-2,18,1),0),
MATCH($R$2,A1:P1,0)-1)
If there can be more rows, add to the 18. If there can be more columns, change the P1's and move R1 & R2 someplace else.

To account for "no match" situations, you might want to try something like:
=IF(ISERROR(FormulaAbove), "", FormulaAbove)

Hope this helps getting started.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup and Hlookup help Nikki Excel Discussion (Misc queries) 3 June 4th 10 04:43 PM
VLOOKUP and HLOOKUP Mike M[_2_] Excel Worksheet Functions 4 July 18th 08 07:27 PM
VLOOKUP , HLOOKUP bijan Excel Discussion (Misc queries) 4 January 7th 07 08:04 PM
Vlookup and Hlookup Phlogiston2312 Excel Worksheet Functions 2 April 20th 05 05:09 PM
HLOOKUP or VLOOKUP help Luong Excel Programming 3 May 14th 04 07:43 AM


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"