adding letters in a payroll calendar

R

ryanjh79

I would like to total all of the "v" for vacation, "s" for sick and "p" for
personal days in a excel worksheet. So, if I had a total of 10 "v" in
different cells each representing a different day of the month I would like
to total those. Is this possible?
 
T

tjtjjtjt

Use the COUNTIF Function.
If your letters are in A1:A25,
=COUNTIF(A1:A25,"v")
would return the total number of times v had been entered in that range.

tj
 
R

ryanjh79

For some reason it only work with a single range. I need to have it
seperated. So, I tried this and it does not
work:=COUNTIF(B7:X11,B15:X19,B23:X27,B31:X35, "V")
do you have any suggestions?

Thanks,
Brandon
 
R

ryanjh79

can you tell me why this formula does not work?
=COUNTIF(B7:X11,B15:X19,B23:X27,B31:X35, "V")
thanks,

Brandon
 
F

Frank Kabel

Hi
just add multiple COUNTIFS. e.g.
=COUNTIF(B7:X11,"V")+COUNTIF(B15:X19,"V")+....
 
Top