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,402
    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
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    https://www.youtube.com/watch?v=bRd4mJglWiM&lc=UgxRmh2gFhpmHNnPemR4AaABAg. A0opm95t2XEA0q3KshmuuY
    https://www.youtube.com/watch?v=bRd4mJglWiM&lc=UgxRmh2gFhpmHNnPemR4AaABAg
    https://eileenslounge.com/viewtopic.php?p=318868#p318868
    https://eileenslounge.com/viewtopic.php?p=318311#p318311
    https://eileenslounge.com/viewtopic.php?p=318302#p318302
    https://eileenslounge.com/viewtopic.php?p=317704#p317704
    https://eileenslounge.com/viewtopic.php?p=317704#p317704
    https://eileenslounge.com/viewtopic.php?p=317857#p317857
    https://eileenslounge.com/viewtopic.php?p=317541#p317541
    https://eileenslounge.com/viewtopic.php?p=317520#p317520
    https://eileenslounge.com/viewtopic.php?p=317510#p317510
    https://eileenslounge.com/viewtopic.php?p=317547#p317547
    https://eileenslounge.com/viewtopic.php?p=317573#p317573
    https://eileenslounge.com/viewtopic.php?p=317574#p317574
    https://eileenslounge.com/viewtopic.php?p=317582#p317582
    https://eileenslounge.com/viewtopic.php?p=317583#p317583
    https://eileenslounge.com/viewtopic.php?p=317605#p317605
    https://eileenslounge.com/viewtopic.php?p=316935#p316935
    https://eileenslounge.com/viewtopic.php?p=317030#p317030
    https://eileenslounge.com/viewtopic.php?p=317030#p317030
    https://eileenslounge.com/viewtopic.php?p=317014#p317014
    https://eileenslounge.com/viewtopic.php?p=316940#p316940
    https://eileenslounge.com/viewtopic.php?p=316927#p316927
    https://eileenslounge.com/viewtopic.php?p=316875#p316875
    https://eileenslounge.com/viewtopic.php?p=316704#p316704
    https://eileenslounge.com/viewtopic.php?p=316412#p316412
    https://eileenslounge.com/viewtopic.php?p=316412#p316412
    https://eileenslounge.com/viewtopic.php?p=316254#p316254
    https://eileenslounge.com/viewtopic.php?p=316046#p316046
    https://eileenslounge.com/viewtopic.php?p=317050&sid=d7e077e50e904a138c794e1 f2115da95#p317050
    https://www.youtube.com/@alanelston2330
    https://www.youtube.com/watch?v=yXaYszT11CA&lc=UgxEjo0Di9-9cnl8UnZ4AaABAg.9XYLEH1OwDIA35HNIei0z-
    https://eileenslounge.com/viewtopic.php?p=316154#p316154
    https://www.youtube.com/watch?v=TW3l7PkSPD4&lc=UgwAL_Jrv7yg7WWC8x14AaABAg
    https://teylyn.com/2017/03/21/dollarsigns/#comment-191
    https://eileenslounge.com/viewtopic.php?p=317050#p317050
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 07-28-2024 at 02:15 PM.

  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
  •