![]() |
Calculating the number of days worked
What formula will calculate the number of days in a row that have different
dates 10-Jul-05 14-Jul-05 18-Jul-05 19-Jul-05 Answer s/b 4 Thanks |
Wouldn't...
=COUNT(DateRange) give you the count you want? Curtis wrote: What formula will calculate the number of days in a row that have different dates 10-Jul-05 14-Jul-05 18-Jul-05 19-Jul-05 Answer s/b 4 Thanks |
Thanks...
I forgot t mention that the row could contain the same date but I do not want to count that twice 10-Jul-05 10-jul-05 14-Jul-05 18-Jul-05 18-Jul-05 19-Jul-05 TH answer is still 4 ( the number of dyas worked) thanks ce "Aladin Akyurek" wrote: Wouldn't... =COUNT(DateRange) give you the count you want? Curtis wrote: What formula will calculate the number of days in a row that have different dates 10-Jul-05 14-Jul-05 18-Jul-05 19-Jul-05 Answer s/b 4 Thanks |
=SUMPRODUCT((Range<"")/COUNTIF(Range,Range&""))
where Range cannot be a whole column reference like A:A. Curtis wrote: Thanks... I forgot t mention that the row could contain the same date but I do not want to count that twice 10-Jul-05 10-jul-05 14-Jul-05 18-Jul-05 18-Jul-05 19-Jul-05 TH answer is still 4 ( the number of dyas worked) thanks ce "Aladin Akyurek" wrote: Wouldn't... =COUNT(DateRange) give you the count you want? Curtis wrote: What formula will calculate the number of days in a row that have different dates 10-Jul-05 14-Jul-05 18-Jul-05 19-Jul-05 Answer s/b 4 Thanks -- [1] The SumProduct function should implicitly coerce the truth values to their Excel numeric equivalents. [2] The lookup functions should have an optional argument for the return value, defaulting to #N/A in its absence. |
Thanks
ce "Aladin Akyurek" wrote: =SUMPRODUCT((Range<"")/COUNTIF(Range,Range&"")) where Range cannot be a whole column reference like A:A. Curtis wrote: Thanks... I forgot t mention that the row could contain the same date but I do not want to count that twice 10-Jul-05 10-jul-05 14-Jul-05 18-Jul-05 18-Jul-05 19-Jul-05 TH answer is still 4 ( the number of dyas worked) thanks ce "Aladin Akyurek" wrote: Wouldn't... =COUNT(DateRange) give you the count you want? Curtis wrote: What formula will calculate the number of days in a row that have different dates 10-Jul-05 14-Jul-05 18-Jul-05 19-Jul-05 Answer s/b 4 Thanks -- [1] The SumProduct function should implicitly coerce the truth values to their Excel numeric equivalents. [2] The lookup functions should have an optional argument for the return value, defaulting to #N/A in its absence. |
All times are GMT +1. The time now is 03:35 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com