Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default vlookup using match and date range

I have a list of data in which A:A lists names B:B lists date of status
change and C:C lists the person's status as of the date in B. I need to find
the status for each person listed in column A as of 09/30/07, as of 09/30/08,
and as of 09/30/09). Any suggestions?

A B C
John Smith 04/01/88 Available
John Smith 04/30/97 Active
Jane Doe 09/28/07 On Leave
Jane Doe 10/02/07 Active
Jane Doe 11/07/07 Available
Jane Doe 01/08/08 Active
Polythene Pam 07/27/05 Available
Polythene Pam 08/23/05 Active
Polythene Pam 03/30/06 Resigned

Many thanks!

Gina
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default vlookup using match and date range

Assumptions:

A2:A10 contains the name

B2:B10 contains the date

C2:C10 contains the status

E2 contains the John Smith

E3 contains Jane Doe

E4 contains Polythene Pam

F1 contains 9/30/07

G1 contains 9/30/08

H1 contains 9/30/09

Formula:

Since the data is sorted by date, in ascending order, for each name,
try...

F2, copied across and down:

=LOOKUP(2,1/(($A$2:$A$10=$E2)*($B$2:$B$10<=F$1)),$C$2:$C$10)

If the data can be sorted first by name, in ascending order, and then by
date, in ascending order, the following should be faster...

F2, copied across and down:

=VLOOKUP(F$1,INDEX($B$2:$B$10,MATCH($E2,$A$2:$A$10 ,0)):INDEX($C$2:$C$10,M
ATCH($E2,$A$2:$A$10,1)),2,1)

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions

In article ,
Gina C <Gina wrote:

I have a list of data in which A:A lists names B:B lists date of status
change and C:C lists the person's status as of the date in B. I need to find
the status for each person listed in column A as of 09/30/07, as of 09/30/08,
and as of 09/30/09). Any suggestions?

A B C
John Smith 04/01/88 Available
John Smith 04/30/97 Active
Jane Doe 09/28/07 On Leave
Jane Doe 10/02/07 Active
Jane Doe 11/07/07 Available
Jane Doe 01/08/08 Active
Polythene Pam 07/27/05 Available
Polythene Pam 08/23/05 Active
Polythene Pam 03/30/06 Resigned

Many thanks!

Gina

Reply
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 or MATCH and/or INDEX to extract value on a given date Don Kline[_2_] Excel Worksheet Functions 7 July 21st 09 02:25 PM
VLOOKUP MATCH INDEX two conditions / criterias text and date John Excel Worksheet Functions 7 September 10th 08 11:31 AM
How to check for a date range match in one column and then count thevalues equal to in another Jon[_6_] Excel Worksheet Functions 5 January 18th 08 11:54 AM
Value match within date range Derek Excel Discussion (Misc queries) 2 September 27th 07 09:18 AM
2 column lookup - match to date range abehart Excel Worksheet Functions 3 April 14th 06 11:42 AM


All times are GMT +1. The time now is 05:10 PM.

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

About Us

"It's about Microsoft Excel"