+ Reply to Thread
Results 1 to 4 of 4

Help with SUMIF or array formula, please!!!

  1. #1
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Help with SUMIF or array formula, please!!!

    Hello there!

    I need somebody skilled in formulas to help me. I am trying to get a formula that can return the cumulative, annual vacation days per employee on my timesheet. See file enclosed. Each row represents a taken/submitted vacation day by someone in my company, so the formula I need has to consider the “Resource Name” (column B) and the “Time Entry Date” (column C) in order to return the results I am showing in column E. Highlighted/colored rows show where the “boundaries” are (where the sum range of submitted days starts and ends for each employee).
    So, for instance: rows 2 to 10 are the vacation days submitted in 2014 by Alonso. In total he took/submitted 9 vacation days during that year.
    I guess a “SUMIF” or an array formula could make it, but I didn’t know how to apply them in this case.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: Help with SUMIF or array formula, please!!!

    Also, I need to add a second formula (Column F, see file again). This formula has to return on each row the total number of vacation days submitted by someone in a year. It can't go through "Subtotals", as I need to use every row in a correlation/regression analysis to make other calculations/predictions.
    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,936

    Re: Help with SUMIF or array formula, please!!!

    E2=SUMPRODUCT(--($B$2:$B2=B2),--(YEAR($C$2:$C2)=YEAR(C2)),$D$2:$D2)
    F2=SUMPRODUCT(--($B$2:$B37=B2),--(YEAR($C$2:$C37)=YEAR(C2)),$D$2:$D37)
    both copied down
    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
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: Help with SUMIF or array formula, please!!!

    Thanks a lot FDibbins! It worked perfectly.

+ 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. SUMIF formula error with Array
    By cjn5465 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-05-2015, 06:40 PM
  2. Sumif formula on an array of criteria?
    By Dial1 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-07-2013, 05:29 PM
  3. SumIf or array formula
    By zachvu in forum Excel General
    Replies: 11
    Last Post: 06-22-2010, 04:45 PM
  4. Array Formula with Sumif and between dates
    By Neil Glazin in forum Excel General
    Replies: 13
    Last Post: 01-15-2010, 11:27 AM
  5. Sumproduct, Sumif, or Array Formula?
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2007, 07:16 PM
  6. Modify SumIF... Array Formula
    By carl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2005, 03:06 PM
  7. [SOLVED] RE: Modify SumIF... Array Formula
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2005, 02:06 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