+ Reply to Thread
Results 1 to 8 of 8

Finding Sum of Values for Specific Period

  1. #1
    Registered User
    Join Date
    06-15-2022
    Location
    mississippi
    MS-Off Ver
    office 365
    Posts
    3

    Finding Sum of Values for Specific Period

    *REDACTED* - I feel I had to much sensitive info in this original post, see replies below for info .
    Last edited by hottoddy; 06-17-2022 at 11:12 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Need help on advanced Excel Formula...

    Please can you share a santised sample of the worksheet itself? There are many possible reasons why you might not be getting the expected results, but its very difficult to diagnose from a screenshot.
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,835

    Re: Need help on advanced Excel Formula...

    Yes, please read the yellow banner at the top of the page for attaching a sample workbook.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,162

    Re: Finding Sum of Values for Specific Period

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-15-2022
    Location
    mississippi
    MS-Off Ver
    office 365
    Posts
    3

    Re: Finding Sum of Values for Specific Period

    Hi All! First, thank you for your replies - I should have read the yellow banner at the top and probably familiarized myself with the other rules you have pointed out. I apologize for that. I have attached a sanitized version of the spreadsheet. On the "Table" tab, I have pasted only the values into the table rather than leaving the formulas that were there previously. This table is looking up the Cost of something at the start of a process and then evenly applying that cost over the course of 8 months for each Category and Phase, so each unique value in the columns appears exactly 8 times. In the Return tab, I am trying to retrieve the sum of values for each Category and Phase at a specific period. I need the sum, as there will be additional "starts" for each category/phase in the Table tab previously mentioned. The "Starts" or Start Period, is technically the column headers for the data set in the Table tab, but I think that this should be irrelevant beyond its use for creating the actual data set in this tab.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Finding Sum of Values for Specific Period

    Try this in cell AO11 and copy down/across

    =IF(AO$6>$B$3,SUMPRODUCT((Table!$K$34:$DU$1373)*(Table!$H$34:$H$1373='Cash Flow'!$B11)*(Table!$G$34:$G$1373='Cash Flow'!$C11)*(Table!$E$34:$E$1373='Cash Flow'!AO$5)),0)

    Does this get you to the expected results?

  7. #7
    Registered User
    Join Date
    06-15-2022
    Location
    mississippi
    MS-Off Ver
    office 365
    Posts
    3

    Re: Finding Sum of Values for Specific Period

    I'm not sure why I can't figure out how to reply to this thread... twice I've tried to post that I actually solved this issue by creating a subtotal for each row in a column at the end of the table and then just using a basic SUMIFS to achieve the same result. AskMeAboutExcel, your solution also works AND is closer to what I was trying to achieve initially - so thank you very much. Achieving this through SUMPRODUCT was how I thought it should work, regardless of my solution, so getting to see how you constructed the formula is extremely beneficial for me. Thank you very much!

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Finding Sum of Values for Specific Period

    no problem, glad you were able to solve this. Using helper columns /calculation often isn't considered 'as elegant' as using a more complex formula, but in many cases it makes for simpler formulas that are not only easier to code, but more transparent to follow and check

+ 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. Advanced Excel Formula Errors
    By dbuell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2020, 12:52 AM
  2. Advanced Excel Formula
    By kaushikdedhiya in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2015, 05:44 AM
  3. Advanced Excel- Array formula issue
    By PatCell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2015, 09:02 PM
  4. Advanced excel formula or function
    By ntc321 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2014, 07:12 PM
  5. How to build an advanced formula in excel
    By Erozas2003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2014, 01:17 AM
  6. advanced excel formula help
    By mca500 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2010, 09:57 AM
  7. [Solved] Advanced Excel formula question
    By karlelei in forum Excel General
    Replies: 1
    Last Post: 11-25-2008, 06:23 AM

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