#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Return earliest date

Hi

I have the following data on 2 sheets in my workbook. In sheet 1 I
want it to check to see if any of the data appears in Sheet 2 and if
so, return the earliest date for that name. eg look for Bob in Sheet
2 and recognise that the earliest date is 31/5.


Sheet 1
A
1 Bob
2 Gary
3 Rick

Sheet 2
A B
1 Bob 2/06/2008
2 Gary 5/06/2008
3 Rick 1/06/2008
4 Rick 5/06/2008
5 Bob 31/05/2008
6 Bob 17/06/2008
7 Rick 2/06/2008
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Return earliest date

try this
=SMALL(sheet2!B1:B6,MATCH(A1,sheet2!A1:A6,0))

On Jun 4, 10:46*am, DebbieV wrote:
Hi

I have the following data on 2 sheets in my workbook. *In sheet 1 I
want it to check to see if any of the data appears in Sheet 2 and if
so, return the earliest date for that name. *eg look for Bob in Sheet
2 and recognise that the earliest date is 31/5.

* * Sheet 1
* * * * A
1 * * * Bob
2 * * * Gary
3 * * * Rick

Sheet 2
* * * * A * * * B
1 * * * Bob * * 2/06/2008
2 * * * Gary * *5/06/2008
3 * * * Rick * *1/06/2008
4 * * * Rick * *5/06/2008
5 * * * Bob * * 31/05/2008
6 * * * Bob * * 17/06/2008
7 * * * Rick * *2/06/2008


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Return earliest date

=MIN(IF(Sheet2!$A$1:$A$7=A1,Sheet2!$B$1:$B$7))

this is an array formula, so commit with ctrl-shift-enter

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"DebbieV" wrote in message
...
Hi

I have the following data on 2 sheets in my workbook. In sheet 1 I
want it to check to see if any of the data appears in Sheet 2 and if
so, return the earliest date for that name. eg look for Bob in Sheet
2 and recognise that the earliest date is 31/5.


Sheet 1
A
1 Bob
2 Gary
3 Rick

Sheet 2
A B
1 Bob 2/06/2008
2 Gary 5/06/2008
3 Rick 1/06/2008
4 Rick 5/06/2008
5 Bob 31/05/2008
6 Bob 17/06/2008
7 Rick 2/06/2008



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Return earliest date

On Jun 4, 5:55*pm, "Bob Phillips" wrote:
=MIN(IF(Sheet2!$A$1:$A$7=A1,Sheet2!$B$1:$B$7))

this is an array formula, so commit with ctrl-shift-enter

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DebbieV" wrote in message

...



Hi


I have the following data on 2 sheets in my workbook. *In sheet 1 I
want it to check to see if any of the data appears in Sheet 2 and if
so, return the earliest date for that name. *eg look for Bob in Sheet
2 and recognise that the earliest date is 31/5.


* *Sheet 1
A
1 Bob
2 Gary
3 Rick


Sheet 2
A B
1 Bob 2/06/2008
2 Gary 5/06/2008
3 Rick 1/06/2008
4 Rick 5/06/2008
5 Bob 31/05/2008
6 Bob 17/06/2008
7 Rick 2/06/2008- Hide quoted text -


- Show quoted text -


Thanks for the speedy replies! Worked great.
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
Find Earliest Date Elaine Excel Worksheet Functions 6 April 7th 10 05:45 PM
Can Excel return the earliest date from a list? joeb Excel Discussion (Misc queries) 2 April 25th 08 03:40 PM
Earliest date using WEEKNUMBER Jock Excel Worksheet Functions 3 September 17th 07 10:17 AM
How do I find the earliest date? Dave Shultz Excel Discussion (Misc queries) 1 May 11th 07 06:45 PM
Earliest Date to populate? sonquizzon Excel Worksheet Functions 2 June 16th 05 07:35 PM


All times are GMT +1. The time now is 06:28 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"