Add up the hours for each month

J

~Jeff~

Column A consists of dates (format example: Thursday, May 06). Date is
entered when vacation time or sick time is taken.
Column B consists of the hours of vacation for that day
Column C consists of the hours of sick time for that day

Column E consists of the months (January, February, etc.)
Column F consists of the hours of vacation taken for that month
Column G consists of the hours of sick time taken for that month

Can someone tell me what the formula would be for cells in columns F & G? I
imagine it would be some kind of lookup function or count function.

Thank you in advance
 
G

Guest

Hi
in F1 enter
=SUMPRODUCT(--(TEXT($A$1:$A$100,"MMMM")=E1),$C$1:$C$100)
and in G1 enter
=SUMPRODUCT(--(TEXT($A$1:$A$100,"MMMM")=E1),$B$1:$B$100)
 
B

Bob Phillips

F: =Sumproduct(--(TEXT(A1:A100, "mmmm")=E1), B1:B1000)
G: =Sumproduct(--(TEXT(A1:A100, "mmmm")=E1), C1:C1000)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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