Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
~Jeff~
 
Posts: n/a
Default Add up the hours for each month

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

--
~Jeff~
[Microsoft Windows XP Pro,Office 2000]


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

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)

"~Jeff~" wrote:

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

--
~Jeff~
[Microsoft Windows XP Pro,Office 2000]



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"~Jeff~" wrote in message
...
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

--
~Jeff~
[Microsoft Windows XP Pro,Office 2000]




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm to select current month or earlier Steve Excel Discussion (Misc queries) 2 January 21st 05 09:41 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM
How can i tell excel to cumalative the hours so 17:00 + 10:00 = 2. jenniss Excel Discussion (Misc queries) 2 January 6th 05 03:53 PM
time-sheet record with over 24 hours kkwaters New Users to Excel 2 December 16th 04 06:24 AM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"