Counting # of days worked

G

Guest

Column J= employee number
Column L = day(s) work

I need to sum the number of different days worked by each employee (Column L
can have multiple instances of the same date)

Thanks

ce
 
B

Bob Phillips

=SUMIF(J2:J100,"employee number",L2:L100)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

Will this formula calculate thee number of different days worked?

Column L contains the day but will have multiple entires of simular dates.

EX: each employee, Column j could have, for example 8 items listed on Nov
16, 6 on Nov 15, etc. In this example I need to calculate that he only worked
2 days

Thanks
 
G

Guest

This formual returns a value that counts the number of instances rather than
the number of different instances (days)

The data contains 7 values for Nov 15 and 8 values for Nov 16. This formula
gives an answer of 15 rather than 2
 
B

Bob Phillips

You need SUM(FREQUENCY for that. Where are the dates?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

The easiest way is to use COUNTDIFF function which is part of the Morefunc
add-in, then you can use this formula

=COUNTDIFF(IF(J2:J100="employee number",IF(L2:L100<>"",L2:L100)),,FALSE)

confirmed with CTRL+SHIFT+ENTER

otherwise, without Morefunc, try

=COUNT(1/FREQUENCY(IF(J2:J100="employee
number",IF(L2:L100<>"",MATCH(L2:L100,L2:L100,0))),ROW(L2:L100)-ROW(L2)+1))

also confirmed with CTRL+SHIFT+ENTER

you can download Morefunc from here

http://xcell05.free.fr/
 

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

Top