M
Marsh Family
I have inherited an Excel spreadsheet where they are recording employees
times. Each employee has a column and each workday is represented in its
own cell. If they work, the number of hours is input in the cell. (e.g. 8)
If the person calls off sick it is recorded as S8 or vacation is V8,
representing the code and number of hours. Some code/time combinations have
more that 1 Alpha character such as BV8 for booked vacation. Right now the
totals of these are being calculated by a very long Countif statement where
they have =Countif(A2:A367,"VB8")*8+Countif(A2:A367,"VB7.50")*7.5+ .... so
that each instance is counted as 1 and multiplied by the number of hours to
calculate the total the number of hours for each code.
Is there an easier way to calculate the hours? I was thinking about using
an 'if' statement that would parse out the alpha characters and leave a
number that you coiuld use a Value on but have gotten bug eyed trying.
If anyone has an ideas or suggestion, it would be greatly appreciated.
David
times. Each employee has a column and each workday is represented in its
own cell. If they work, the number of hours is input in the cell. (e.g. 8)
If the person calls off sick it is recorded as S8 or vacation is V8,
representing the code and number of hours. Some code/time combinations have
more that 1 Alpha character such as BV8 for booked vacation. Right now the
totals of these are being calculated by a very long Countif statement where
they have =Countif(A2:A367,"VB8")*8+Countif(A2:A367,"VB7.50")*7.5+ .... so
that each instance is counted as 1 and multiplied by the number of hours to
calculate the total the number of hours for each code.
Is there an easier way to calculate the hours? I was thinking about using
an 'if' statement that would parse out the alpha characters and leave a
number that you coiuld use a Value on but have gotten bug eyed trying.
If anyone has an ideas or suggestion, it would be greatly appreciated.
David