ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dates between cells in one column and another (https://www.excelbanter.com/excel-discussion-misc-queries/248547-dates-between-cells-one-column-another.html)

excelitous

Dates between cells in one column and another
 
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

T. Valko

Dates between cells in one column and another
 
Try something like this...

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

--
Biff
Microsoft Excel MVP


"excelitous" wrote in message
...
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




Bernard Liengme

Dates between cells in one column and another
 
A 'week' is not well defined; but if you mean a week as any 7 days (not a
calendar week) then
=IF(B1-A17*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-A17*12,"More than 12 weeks","")
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"excelitous" wrote in message
...
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



Erich

Dates between cells in one column and another
 
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


CM

Dates between cells in one column and another
 
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


CM

Dates between cells in one column and another
 
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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com