Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Location: Birmingham
Posts: 35
Default Check if a date comes before/after a range of dates

Hi all,

If I have two sheets both with a column of dates included... Is it possible to look up a date in say, 'Sheet B' against the whole column of dates in 'Sheet A' and return a simple yes/no if the date in 'Sheet B' comes before any other date in the 'Sheet A' column of dates?

i.e...

'SHEET A'

A B
1 18/01/2012
2 14/05/2010
3 12/10/2011
4 22/03/2012
5 04/02/2009

'SHEET B'

A B
1 16/11/2012 No
2 07/12/2010 No
3 26/01/2008 Yes
4 09/08/2012 No
5 30/06/2008 Yes

B3 & B5 will then say 'Yes' as both of dates in cells A3 & A5 are before any date in the whole column of 'Sheet A.'

Hope that makes sense.

Thank you in advance,

Jay
  #2   Report Post  
Junior Member
 
Posts: 11
Default

Quote:
Originally Posted by Jay07 View Post
Hi all,

If I have two sheets both with a column of dates included... Is it possible to look up a date in say, 'Sheet B' against the whole column of dates in 'Sheet A' and return a simple yes/no if the date in 'Sheet B' comes before any other date in the 'Sheet A' column of dates?

i.e...

'SHEET A'

A B
1 18/01/2012
2 14/05/2010
3 12/10/2011
4 22/03/2012
5 04/02/2009

'SHEET B'

A B
1 16/11/2012 No
2 07/12/2010 No
3 26/01/2008 Yes
4 09/08/2012 No
5 30/06/2008 Yes

B3 & B5 will then say 'Yes' as both of dates in cells A3 & A5 are before any date in the whole column of 'Sheet A.'

Hope that makes sense.

Thank you in advance,

Jay
I believe this can be solved with a =vlookup
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by ChooseParkay View Post
I believe this can be solved with a =vlookup
Is this what you mean?
Not done with a VLOOKUP but rather an array IF formula.
Attached Files
File Type: zip Jay07 Example.zip (6.6 KB, 32 views)
  #4   Report Post  
Member
 
Location: Birmingham
Posts: 35
Default

Quote:
Originally Posted by Spencer101 View Post
Is this what you mean?
Not done with a VLOOKUP but rather an array IF formula.
Brilliant! Thanks Spencer. Works like a good'un.
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
Check dates against a date range. hombreazul Excel Discussion (Misc queries) 0 January 30th 12 12:57 AM
Check if date is between two dates, then sum only those rows streetcar Excel Worksheet Functions 2 February 16th 10 12:19 PM
Dates: How to check if date value is 10 months and or 1 year old? Rick S. Excel Programming 8 October 2nd 07 03:30 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Check column of dates against todays date Andrew82 Excel Worksheet Functions 1 April 15th 05 11:17 AM


All times are GMT +1. The time now is 05:16 AM.

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"