Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Multiple Match and return header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
edethington@googlemail.com - 20 Dec 2007 16:35 GMT
I am trying to find a way to Match on multiple values and return the
header a row based on that. I have tried looking at combinations of
vlookup, match, and index and so far haven't been able to figure out
anything that can do what I need.  I have a list of data with  a
person's name in the first column, and then headers for an action they
took.  Then data in each cell is then the date range they took the
action.  here is an example:

             Action 1     Action 2     Action 3     Action 4
John       2/3/2005     2/5/2006    5/7/2006     9/25/2006
Bob        1/3/2006     5/3/2006    8/10/2006   1/5/2007
Sue        3/3/2006     9/5/2006    9/7/2006     9/25/2006
Jim         1/3/2007     5/3/2007    8/10/2007   9/5/2007

So on another worksheet, I want to reference this data and have a row
that has:

Bob      1/3/2006

In this case I would want it to return to me "Action 1" to be
displayed.

In addition to just being able to match, I actually also need to to do
a closest match on the date so if I have:

Sue       5/5/2006

I could match on it is it would still return the value of "Action 1"
being the previous value for this person, even though it isn't an
exact match.  Can someone let me know if this is possible?  Thanks for
your help!
T. Valko - 20 Dec 2007 18:16 GMT
So, if there isn't an exact date match then match the closest date that is
*less* than the lookup date? I notice that your dates are in ascending
order...

With this table in the range A1:E5 -

>              Action 1     Action 2     Action 3     Action 4
> John       2/3/2005     2/5/2006    5/7/2006     9/25/2006
> Bob        1/3/2006     5/3/2006    8/10/2006   1/5/2007
> Sue        3/3/2006     9/5/2006    9/7/2006     9/25/2006
> Jim         1/3/2007     5/3/2007    8/10/2007   9/5/2007

A8 = Sue
B8 = lookup date = 5/5/2006

=INDEX(B1:E1,MATCH(B8,INDEX(B2:E5,MATCH(A8,A2:A5,0),0)))

Signature

Biff
Microsoft Excel MVP

>I am trying to find a way to Match on multiple values and return the
> header a row based on that. I have tried looking at combinations of
[quoted text clipped - 27 lines]
> exact match.  Can someone let me know if this is possible?  Thanks for
> your help!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.