+ Reply to Thread
Results 1 to 6 of 6

Way to identify the values being summed in a SUM function

  1. #1
    Forum Contributor JulianS96's Avatar
    Join Date
    11-01-2019
    Location
    England
    MS-Off Ver
    365 (work-99%), 2016 (home-1%)
    Posts
    266

    Way to identify the values being summed in a SUM function

    Hi forum,
    Just a quick one,
    Wondering is there is a way to find out which values are being summed together in a SUM or SUMIF function.
    i.e. =SUM(A1:A4) = 13 (if A1 = 2, A2 = 4, A3 = 6, A4 = 1)
    Is there a way to find out which values excel used to get the answer 13?
    Cheers,
    Julian

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Way to identify the values being summed in a SUM function

    Quote Originally Posted by JulianS96 View Post
    Is there a way to find out which values excel used to get the answer 13?
    Yes, values from range A1:A4.




    Seriously, I don't understand what do you expect.....
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Way to identify the values being summed in a SUM function

    The SUM() function will include every numeric value in the sum. When using the SUM() function, put something like =ISNUMBER(A1) into B1 and copy down. Every entry that corresponds with a TRUE result in column B is being included in the sum.

    In a similar way, you can use an IF() function or boolean expression with the same criteria as the SUMIF() function to see which values are included. For example, if your SUMIF() function is =SUMIF(A1:A4,">=3"), then you could use a formula like =(A1>=3) in B1 (and copied down) to see which entries were included in the sum.

    Basically, once you understand how your chosen function chooses which values to include in its calculation, then follow up with a helper column (or even conditional format) that tests the same condition.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor JulianS96's Avatar
    Join Date
    11-01-2019
    Location
    England
    MS-Off Ver
    365 (work-99%), 2016 (home-1%)
    Posts
    266

    Re: Way to identify the values being summed in a SUM function

    Ok well my example was obviously too simple.
    What I mean is that say I have a SUMIF formula, and want to know exactly what values it is pulling out without having to do any extra calculations?
    For example the function INDEX(MATCH or OFFSET( show the values used when you click "Evaluate Formula" but the SUMIF one does not and just shows the resulting sum.
    Reason for asking this question?
    I want to see if any erroneous results are being pulled from the SUMIF function. If not, then so be it, if yes then please tell me.
    EDIT: Thanks Shorty, that may be a good idea for error checking and proofing.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Way to identify the values being summed in a SUM function

    For example the function INDEX(MATCH or OFFSET( show the values used when you click "Evaluate Formula" but the SUMIF one does not and just shows the resulting sum.
    Reason for asking this question?
    I want to see if any erroneous results are being pulled from the SUMIF function. If not, then so be it, if yes then please tell me.
    To my knowledge, no, there is no built in way to "look under the hood" of Excel's built in functions to see what happens inside of the function. There have been a few situations where, like you, I have wanted to query a functionIFS() function to see what values it chose to include, but I have never found a utility (like the evaluate formula utility) that will readily do this. I think we are on our own to develop such a debugging tool, but, as my "helper column" suggests, this need not be a difficult programming exercise.

  6. #6
    Forum Contributor JulianS96's Avatar
    Join Date
    11-01-2019
    Location
    England
    MS-Off Ver
    365 (work-99%), 2016 (home-1%)
    Posts
    266

    Re: Way to identify the values being summed in a SUM function

    Ok Cheers anyway Boss

+ 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. Similar to choose function but want it summed
    By Tsangman007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-14-2020, 05:29 PM
  2. [SOLVED] Need help rounding a summed index function...
    By pasqualebaldi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2016, 01:36 PM
  3. Replies: 4
    Last Post: 05-07-2015, 02:56 PM
  4. Formula to identify certain cells that should be summed
    By adam141 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2013, 09:16 AM
  5. [SOLVED] If values being summed contain NA, return NA value for sum
    By dpsersimon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2012, 12:21 AM
  6. Identify top 3, bottom 3 and intermediate values using IF function
    By nataliebenjamin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2012, 03:28 PM
  7. SUMIF where values to be summed are formula
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 11:05 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