On excel how can I get totals when denoting D (day) when creating.

G

Guest

When creating a schedule for a number of employees on a daily 4-week
spreadsheet, How can I total Shifts when they are designated "D" for day
shift instead of a numerical value as 12 hours?
 
G

Guest

=IF(A1="D",12,IF(A1="N","whatever nightshift hours
are",""))

and you can nest additional IF statements for other shifts
you might have.
 
J

JE McGimpsey

One way:

=COUNTIF(rng, "D")

or, for 12 hours per shift as integer hours:

=COUNTIF(rng,"D")*12

or, for 12 hours per shift as a time:

=COUNTIF(rng,"D")/2

(format the cell as Time).
 
A

Alan

If in colmn C, range C1:C25 there were four 'D's
=COUNTIF(C1:C25,"D") will count the 'D's and return four,
Regards,
 

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