Calculating the number of days worked

C

Curtis

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
 
C

Curtis

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
 
A

Aladin Akyurek

=SUMPRODUCT((Range<>"")/COUNTIF(Range,Range&""))

where Range cannot be a whole column reference like A:A.
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


:

--

[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.
 
C

Curtis

Thanks

ce

Aladin Akyurek said:
=SUMPRODUCT((Range<>"")/COUNTIF(Range,Range&""))

where Range cannot be a whole column reference like A:A.
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


:

--

[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.
 
Top