+ Reply to Thread
Results 1 to 15 of 15

SUMIFS Function - Seeing the "Records" that make up a result

  1. #1
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    SUMIFS Function - Seeing the "Records" that make up a result

    At the moment, I'm using the SUMIFS function to sum invoices that meet certain criteria to track a budget.

    So far, so good.

    I used to use PivotTables a lot - and liked the way that by double clicking on a PivotTable cell a new tab would be created showing the records that made up that PivotTable cell result.

    Is there a similar way to see the "records" that make up a SUMIFS result? At the moment my spreadsheet is fairly easy and I can just about check the results manually - but I'd like to be able to drill down on the SUMIFS result to see which invoices make it up.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    There's a couple of tools that might help you here.
    On the Formulas Tab, "Trace Precedents" will show what cells the formula is using. Double clicking on a line will select whatever range it is pointing to.

    On the Formulas Tab, "Evaluate Formula" will walk you through a step by step of how the formula is calculating a result.

    Other than these two things, I don't know what else will help you.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Here is a rough prototype that shows that such a thing can be done. It is somewhat limited in how complex the SUMIFS criteria can be, and it's slow. But it works. Click on one of the shaded cells G2, G3 to have the corresponding numbers highlighted in yellow.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Maybe you could use conditional formatting to highlight the cells which contribute to the SUMIFS result. Attach a sample workbook as described in the yellow banner at the top of the screen, so we can see your data in context.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Chemist B

    Thanks for your suggestion - it definitely has it's uses but I am trying to be able to drill down whenever required to see which invoices make up each of the totals generated by SUMIFS.

    Peter

  6. #6
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Jeff

    Wow - that achieves exactly what I want. I'm inexperienced with macros - any ideas on how I could replicate the logic in your spreadsheet in my one?

    Thanks for helping.

    Peter

  7. #7
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Pete

    Here goes - here is my spreadsheet.

  8. #8
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Pete

    Apologies - I meant to say thanks in my reply - but I pressed the submit button too quickly!

    Thanks

    Peter

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Give us a clue. Where are the SUMIFS formulae located, and which cells do you want to highlight?

    Pete

  10. #10
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Pete

    The formula are on the "Budget Analysis" tab - e.g. cell E45. The underlying data being summed is on the "Invoices" tab - in the table. Hope this helps.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    I'll see if I can install this in the file you provided. But it's kind of a prototype and not very fast. I need to do some thinking about how it might be more efficient/elegant.

  12. #12
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Jeff

    Thanks for looking into this - I'd be very happy if I could drill down from a SUMIFS results cell to see the underlying records that constitute that result - but don't stress if it is too difficult. I'm just saying thanks for trying in a roundabout way - hopefully you can adapt your macro reasonably easily. I'm slightly relieved that there wasn't an easier way of doing this that I had missed!

    Peter

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    What I wrote is for a fairly simple scenario where the criteria are A1-style range references. Your file uses references to tables on other sheets. I would have to extensively rewrite my code to deal with that. At some point this turns into replicating Excel's formula parser.

  14. #14
    Registered User
    Join Date
    04-19-2021
    Location
    England
    MS-Off Ver
    Unknown
    Posts
    8

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    Hi Jeff

    I think that I get your drift. It just seems very odd to me that Excel doesn't provide a facility to drill down on a SUMIFS result to see the underlying records. If I can't prove where a number comes from, I have my doubts about it being correct.

    Thanks for your thoughts and help.

    Peter

  15. #15
    Registered User
    Join Date
    07-14-2013
    Location
    USA
    MS-Off Ver
    MS 365
    Posts
    97

    Re: SUMIFS Function - Seeing the "Records" that make up a result

    This is not a solution, but a way to give MS Excel Team feedback and suggestions.

    From your Office app, go to Help > Feedback. From your Office app, go to File > Feedback. Use the feedback tool in the upper-right corner of your app to send feedback directly to our team. This will not bring immediate results, but if enough people like the idea, it could be added in a future update or version release of Excel.

+ 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. [SOLVED] Use SumIf or SumIfs to result in "text word"
    By pelbert in forum Excel General
    Replies: 3
    Last Post: 04-28-2020, 02:08 PM
  2. [SOLVED] Make "WeekdayName" Function Work With "dd/mm/yyyy" Format
    By KMVKMVKMV in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-30-2019, 02:30 PM
  3. "ProductIfs" Like Function (Instead of "SUMIFS")
    By clueless12 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2015, 03:13 AM
  4. SUMIFS Function: how to make the "sum_range" argument as a non-fixed variable
    By brunocinelli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 12:55 PM
  5. Replies: 9
    Last Post: 09-05-2012, 10:23 AM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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