+ Reply to Thread
Results 1 to 6 of 6

Formula to summarize hours

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to summarize hours

    Hello:

    Please refer to attached excel file.
    I have 2 sheets, Hours and Summary.
    Hours sheet shows hours for employees listed in row 2 and date in column A.

    I need a formula in Summary sheet in cell D4:D8 so that each employee hours are
    calculated between date in cell C1 and C2.

    Please refer to attached file.
    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula to summarize hours

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in D4

    try this

    Punnam
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Formula to summarize hours

    Slight variation on Punnam's suggestion...
    =SUMIFS(OFFSET(Hours!$A$2,1,MATCH($A4,Hours!$B$2:$G$2,0),400,1), Hours!$A$3:$A$402,">="&Summary!$C$1, Hours!$A$3:$A$402,"<="&Summary!$C$2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Formula to summarize hours

    Or this 1...
    =SUMPRODUCT((Hours!$B$2:$G$2=Summary!$A4)*(Hours!$B$3:$G$367)*(Hours!$A$3:$A$367>=$C$1)*(Hours!$A$3:$A$367<=$C$2))

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize hours

    Hi FDibbins:

    Like your formula and works great.
    Thanks a lot.
    Riz

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Formula to summarize hours

    Glad we could hel9, thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to summarize
    By rizmomin in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-20-2014, 10:28 AM
  2. [SOLVED] Formula Calculated total work hours - now need to remove breaks and standard hours?
    By smeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2014, 12:15 AM
  3. Formula to Summarize Data?
    By 2709236 in forum Excel General
    Replies: 11
    Last Post: 01-28-2011, 10:47 AM
  4. Converting hours to 8 hour days, 31 day limit? Formula blows up at 256 hours..
    By krfarmer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-25-2010, 05:21 AM
  5. How do I summarize time that exceeds 24 hours?
    By Rose in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2006, 05:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1