Results 1 to 8 of 8

Thread: Sumif To Add Cumulative YTD Criteria In The Same Column

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0

    Sumif To Add Cumulative YTD Criteria In The Same Column

    Hello guys,

    I have used sumiff to add up my inter-company recharges based on dept, finanical year, and financial period (e.g month).

    the formula below works by saying

    =IFERROR(SUMIFS(data!$D$2:D92166,data!$B$2:B92166, $D$2,data!$C$2:C92166,$D$3,data!$A$2:A92166,$D$4), "-")

    look at the data range data!$D$2:D92166 and sum dependent on the chosen financial year ($D$2), financial period ($D$3), and department ($D$4).

    I am however struggling to find a formula that show the cumulative year-to-date amounts if say March is chosen. It should show the sum of January to March from the same column that contains various entries from Jan to Dec.
    I'm not sure i can use SUMPRODUCT with ISNUMBER as i want to add all amount from Jan to the chosen period. I have used numbers to represent the periods (e.g. 1 to 12).

    Any help would be greatly appreciated.

    Thanks,
    Jay

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Post a sample workbook with the expected output for 1 or 2 months as example.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0
    I have tried attaching workbook but the file is to big and wont be accepted.

    In the workbook

    When the financial year, financial period, and department are selected with the drop down menu, it populate the recharge amounts in the section below for the period. This then compares vs budget to show variance.

    Financial Year FY 1314
    Financial Period 3
    Department - Energy


    Budget Actual £ Var % Var
    Period £150.0 k £200.0 k £(50.0)k >99%
    Year to Date £450.0 k £450.0 k (100.0%)


    What i would also need to do if have a formula in the empty cell for year-to-date that shows the year to date recharge amount, for example for the Energy department in Fin Year 2013/14, Period 3, would give a cumulative amount of £7k (period one is £1k, plus period two £2k, plus period three £4k). The data is

    Dept Fin_Yr Fin_Pd Amount
    Safety FY 1213 1 1000
    Energy FY 1314 1 2000
    Safety FY 1213 2 5000
    Energy FY 1314 2 10000
    Safety FY 1314 3 100000
    Energy FY 1314 3 200000


    Any help would be greatly appreciated, having spend some hours trying to figure it out.

    Thank you.

  4. #4
    Member
    Join Date
    Jun 2012
    Posts
    39
    Rep Power
    0
    Find the attachment and see if it can help you any way.


    Bs,
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Dec 2012
    Posts
    16
    Rep Power
    0
    Post a sample not the whole book!

    Post a sample workbook with the expected output for 1 or 2 months as example

  6. #6
    Junior Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0
    Sahel,

    Thanks very much for the tip, it finally works after using your formula in the below format

    =SUMPRODUCT(--(Dept=$D$4),--(Fin_Pd<=$D$3),--(Fin_Year=$D$2),--(Amount))

    I have tried attaching a sample of my output but still too large. Your attachment however is exactly what i need.

    Thanks again, much appreciated.

    Jay

  7. #7
    Junior Member
    Join Date
    May 2013
    Posts
    4
    Rep Power
    0
    I should spell your name correctly Safal, apologies

  8. #8
    Member
    Join Date
    Jun 2012
    Posts
    39
    Rep Power
    0
    U r welcome and apologies accepted.

Similar Threads

  1. Replies: 7
    Last Post: 05-15-2013, 02:56 PM
  2. Replies: 5
    Last Post: 04-07-2013, 05:11 PM
  3. Replies: 4
    Last Post: 08-11-2012, 10:50 PM
  4. SUMIFS multiple criteria from same column
    By excel_learner in forum Excel Help
    Replies: 8
    Last Post: 06-30-2012, 01:56 PM
  5. SUM Value With Multiple Criteria In Same Column
    By MarkJohn in forum Excel Help
    Replies: 2
    Last Post: 05-18-2012, 07:52 AM

Posting Permissions

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