Calulating the number of days an employee works

G

Guest

I currently use the following formula below to caculate the number of days
worked by each emloyee

=SUMPRODUCT(('Employee Data'!$L$5:$L$260<>"")/COUNTIF('Employee
Data'!$L$5:$L$260,'Employee Data'!$L$5:$L$260&""))

However this formulae was used when each employee information was seperated
in seperate sheets.

I need to add a string to this fomrula that calcualtes the number of
different days worked by each employee (all employee information is now
compiled in a single sheet

Hopefully this make s sense

Thanks

ce
 
G

Guest

I ned to no where employeenames are (ges there names are in several rows)?
and u ned to have the names somwhere only onse to calcuate with


"Curtis" skrev:
 
G

Guest

Employee Names are located in the sheet and range

('Employee Data'!$J$5:$J$260=$A24)

Where $a24 = unique employee ID
 
G

Guest

OK put all employeenames in colum eg. N5:N? only onse
then put this formula in O5 and copy down for all employee i column N

=SUMPRODUCT(($J$5:$J$260=N5)*($L$5:$L$260))




"Curtis" skrev:
 
G

Guest

Sorry I am not sure I provided enough detail

I need the formula to be able to distiguish between employee ID and
different days worked. AN employee can represent multiple instances of work
in the same day

SO far I have


but that just tells me the nunber of different days in total and does not
seperate by employee

Thanks

ce
 
B

Bob Phillips

=SUMPRODUCT(($J$5:$J$12=A24)*($L$5:$L$12<>"")/COUNTIF($L$5:$L$12,$L$5:$L$12&
""))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

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

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