PC Review


Reply
Thread Tools Rate Thread

Dates between cells in one column and another

 
 
excelitous
Guest
Posts: n/a
 
      16th Nov 2009
Hi can any one help me. I need to find out which dates within one column are
less than 12 weeks apart from dates in another column.
For example:

Column A 12/03/2009 14/03/2009
Column B 14/04/2009 16/06/2009
I have two columns with 2000 records in and need to identify these records
 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      16th Nov 2009
Try something like this...

=IF(B1<A1+(12*7),"Less","")

--
Biff
Microsoft Excel MVP


"excelitous" <(E-Mail Removed)> wrote in message
news:E262489A-3F6F-4959-AFB5-(E-Mail Removed)...
> Hi can any one help me. I need to find out which dates within one column
> are
> less than 12 weeks apart from dates in another column.
> For example:
>
> Column A 12/03/2009 14/03/2009
> Column B 14/04/2009 16/06/2009
> I have two columns with 2000 records in and need to identify these records



 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      16th Nov 2009
A 'week' is not well defined; but if you mean a week as any 7 days (not a
calendar week) then
=IF(B1-A1>7*12,"More than 12 weeks","less")
will work
You can put anything within the quotes.
If you want a blank rather than "less", use
=IF(B1-A1>7*12,"More than 12 weeks","")
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"excelitous" <(E-Mail Removed)> wrote in message
news:E262489A-3F6F-4959-AFB5-(E-Mail Removed)...
> Hi can any one help me. I need to find out which dates within one column
> are
> less than 12 weeks apart from dates in another column.
> For example:
>
> Column A 12/03/2009 14/03/2009
> Column B 14/04/2009 16/06/2009
> I have two columns with 2000 records in and need to identify these records


 
Reply With Quote
 
Erich
Guest
Posts: n/a
 
      17th Nov 2009
I'm not sure what you want to do when you find items that are less than or
more than 12 weeks, but, you can try this

=IF(B1-A1<=84,"Less than 12 weeks","More than 12 weeks")

If cell B1 minus A1 is less than or equal to 84 (number of days in 12
weeks), then display "less than 12 weeks". Otherwise, display "More than 12
weeks"

This assumes that all of these columns contain date info. You could also do
this with Conditional formatting to change the color of the cell when it
exceeds 12 weeks

"excelitous" wrote:

> Hi can any one help me. I need to find out which dates within one column are
> less than 12 weeks apart from dates in another column.
> For example:
>
> Column A 12/03/2009 14/03/2009
> Column B 14/04/2009 16/06/2009
> I have two columns with 2000 records in and need to identify these records

 
Reply With Quote
 
cm
Guest
Posts: n/a
 
      17th Nov 2009
assuming date in column B is larger than date in column A always:

try

=IF(B1-A1<84,"less than 12 weeks","")
--
hope to help,
cm


"excelitous" wrote:

> Hi can any one help me. I need to find out which dates within one column are
> less than 12 weeks apart from dates in another column.
> For example:
>
> Column A 12/03/2009 14/03/2009
> Column B 14/04/2009 16/06/2009
> I have two columns with 2000 records in and need to identify these records

 
Reply With Quote
 
cm
Guest
Posts: n/a
 
      17th Nov 2009
assuming the date in column B is always greater than column A, try:

=if(B1-A1<84,"less than 12 weeks","")
--
hope to help,
cm


"excelitous" wrote:

> Hi can any one help me. I need to find out which dates within one column are
> less than 12 weeks apart from dates in another column.
> For example:
>
> Column A 12/03/2009 14/03/2009
> Column B 14/04/2009 16/06/2009
> I have two columns with 2000 records in and need to identify these records

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Cells display text others dates in the same column Ragtime Phil Microsoft Excel Misc 2 29th Jan 2010 05:46 PM
HOW CREATE FORMULA TO ADD THE COLUMN CELLS THAT CONTAINING DATES =?Utf-8?B?a3Jpc2huYQ==?= Microsoft Excel Worksheet Functions 1 22nd Sep 2007 09:16 AM
Count number of cells of a particular month in a column of dates Gohan51D Microsoft Excel Misc 9 15th Mar 2006 07:21 PM
How do I count blank cells in a column of dates? Ron Microsoft Excel Programming 4 8th Apr 2005 06:46 PM
Count cells in a column that contain dates =?Utf-8?B?Q2FjaG9kMQ==?= Microsoft Excel New Users 1 29th Mar 2005 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 AM.