Need help on counting text within certain criteria
Assuming your day headers (MTWTF) are in row #2, starting with col C
and your hours total in col B
B1: =SUMPRODUCT((C3:AZ3="F")*(((C$2:AZ$2="F")*5)+(C$2: AZ$2<"F")*8.5))
HTH
--
AP
"christinac" a écrit dans le message
de ...
I have a spreadsheet that I am setting up to show holidays and sickness
days.
The table looks like this:
Name Week 1 Week 2
M T W T F M T W T F
EMPLOYEE F F H F F
F = Full day holiday
H = Half day holiday
This bit is easy because I used Countif to calculate the number of days.
However, I need to convert it to hours which is a little more complicated.
The hours worked are Monday - Thursday 8.5 Hours, Friday - 5 hours. Only
five fridays per year can be taken as holiday.
I need a formula that will count the number of F entries and multiply it
by
8.5 except if it is a Friday which be multiplied by 5. How do I do this?
--
Chris
|