Have you considered using countif * the value of H? For example:
=countif(B2:B500,"H")*7.5
This would count the number of occurrences of the letter "H" and
multiply that number by the total hours expected.
If H isn't alone, you could create a separate set of cells that lists
letter/number pairs. Then use countif for the specific letter times a
vlookup of that same letter to return it's corresponding multiplier.
For example:
Column B contains the values you want to tally
Column Q lists the letters, G,H,I, etc.
Column R lists corresponding numeric values, 5, 7.5 10, etc.
Your summary section is in AA2:AB5 (where AA lists the letters and
BB will list the totals)
Your formula might look something like:
For G: =countif(B2:B500,"G")*vlookup(AA2,Q2:R5,2,false) [so it
first counts how many times "G" appears and then multiplies it against
the corresponding value you created earlier.]
....repeat for H,I, etc.
Jim