Calculating the number of days worked

G

Guest

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
 
G

Guest

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top