#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 201
Default Dates

Hi

I Am trying to work out the difference between 2 dates, if the dates are
under say 30 day i need it to count it.

so if i have
23/04/2007 & 2404/2007
and
22/01/2007 & 24/04/2007

It will only count the cells that have a date less than 30days?
Any suggestion

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Dates

In C1: =--((B1-A1)<30)
copy down
then sum all 1s in column C

"phil" wrote:

Hi

I Am trying to work out the difference between 2 dates, if the dates are
under say 30 day i need it to count it.

so if i have
23/04/2007 & 2404/2007
and
22/01/2007 & 24/04/2007

It will only count the cells that have a date less than 30days?
Any suggestion

Thanks for your help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Dates

=SUMPRODUCT(--(A2:A20<""),--(B2:B20<""),--((A2:A20-B2:B20)<30))

--
HTH

Bob

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

"phil" wrote in message
...
Hi

I Am trying to work out the difference between 2 dates, if the dates are
under say 30 day i need it to count it.

so if i have
23/04/2007 & 2404/2007
and
22/01/2007 & 24/04/2007

It will only count the cells that have a date less than 30days?
Any suggestion

Thanks for your help



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Dates

Try this:

I'm assuming the dates are in 2 columns:

=SUMPRODUCT(--(ISNUMBER(A1:A10)),--(ISNUMBER(B1:B10)),--(ABS(A1:A10-B1:B10)<30))

Biff

"phil" wrote in message
...
Hi

I Am trying to work out the difference between 2 dates, if the dates are
under say 30 day i need it to count it.

so if i have
23/04/2007 & 2404/2007
and
22/01/2007 & 24/04/2007

It will only count the cells that have a date less than 30days?
Any suggestion

Thanks for your help



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
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


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

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"