Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Identifying unique dates in a range of cells containing dates... | Excel Discussion (Misc queries) | |||
Identifying unique dates within a range of cells containing dates | Excel Discussion (Misc queries) | |||
need to convert list of dates to count no. of dates by week | Excel Worksheet Functions | |||
Calculating number of days between two dates that fall between two other dates | Excel Discussion (Misc queries) | |||
Charting data against dates where dates are not at fixed intervals | Charts and Charting in Excel |