+ Reply to Thread
Results 1 to 3 of 3

sum multiple matched critera values?

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    portland
    MS-Off Ver
    Excel 2007
    Posts
    1

    sum multiple matched critera values?

    I have a time card where I would like to total regular hours, Holiday hours, vacations hours, etc. The hours for each day can fluctuate so the type of hours, if different than regular, are labeled as 'Holiday', 'Vacation', etc.

    Im able to use the Index Match to get the number of hours to show correctly for one 'Vacation' match, but can't seem to get addtional 'vacation' days added into the total.

    Does anyone have a suggestion? Thanks for helping!!!!!

    Example

    hours Type
    9
    7.5 vacation
    9 vacation
    8
    8 holiday

    8
    9
    6 PTO
    7.5
    4
    __

    Regular hours 45.5
    Vacation hours 16.5
    Holiday Hours 8
    PTO hours 6

    Total hours 76.0

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: sum multiple matched critera values?

    Use the SUMIF function...
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,788

    Re: sum multiple matched critera values?

    Hi clthompso and welcome to the forum

    based on your sample, with your data in A1:B11, make a table with your categories in - I uised C2:C4, then use this, copied down...

    =SUMIF($B$1:$B$11,C2,$A$1:$A$11)

    for regular hours, sum all hours - sum "other" hours...
    =SUM(A1:A11)-SUM(D2:D4)
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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