+ Reply to Thread
Results 1 to 16 of 16

why same Sum formula highlight f9 shows different results

  1. #1
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    why same Sum formula highlight f9 shows different results

    Can someone tell me the reason behind it? I can't figure out

    Untitled18.png



    So I put same formula into these 4 cells (H33, H34, H35, H36) and then highlight the "offset formula" inside and press f9 and they show different results. Can someone tell me the reason behind it? for example the math behind it


    The highlight result that I manually typed out to show you guys is on the L columns

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: why same Sum formula highlight f9 shows different results

    Post the workbook, not a picture of it.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    you have to highlight the offset part inside the sum function and press f9 to understand what I am asking on H33 to H36
    Attached Files Attached Files
    Last edited by AliGW; 02-08-2022 at 03:32 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: why same Sum formula highlight f9 shows different results

    I can not see the results that you get (column I). I see =SUM({3}) in all cases.

    Were you array-entering the formulae, or just using Enter?

    OFFSET cannot dispaly arrays correctly and this can somethimes cause problems. I think that's the root cause of the issue you're seeing. I believe that there's a problem with the way formula arrays are handled in the height & width sections of OFFSET. When I use:

    SUM(OFFSET($L$33,TRANSPOSE(ROW($L$33:$L$36))-ROW($L$33),,,))

    or

    =SUM(OFFSET($L$33,{0,1,2,3},,,))

    they calculate perfectly and although Evaluate Formula shows =SUM(#VALUE!,#VALUE!,#VALUE!,#VALUE!)... the end result (18) displays correctly.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 12-30-2021 at 04:31 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: why same Sum formula highlight f9 shows different results

    They all evaluate the same for me.

    Are you eentering them as array formulae with CSE?
    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.

  6. #6
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: why same Sum formula highlight f9 shows different results

    [... withdrawn ... potentially misleading conclusions ...]
    Last edited by curiouscat408; 12-30-2021 at 12:59 PM.

  7. #7
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: why same Sum formula highlight f9 shows different results

    I doubt about TRANSPOSE(), why need to add this function?

    Sorry my english is not so well, might be difficult to understan.

    imo, when you enter formaula in this way, it might try to converted to
    array formula and change relative cell according to the cell location.

    Regards.


    Note: I'm understand you, you just doubt why the result of OFFSET in each formula after
    debug (select and press F9 within the cell) give different result.

  8. #8
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    @Glenn Kennedy

    when you do the two above formulas, do you get the final result 3 and not 18 (6+5+4+3) right?
    Last edited by AliGW; 02-08-2022 at 03:31 AM. Reason: PLEASE don't quote unnecessarily!

  9. #9
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    @menem

    I have no idea why Transpose is used, I just randomly find formula on internet and check what they can do
    Last edited by AliGW; 02-08-2022 at 03:31 AM. Reason: PLEASE don't quote unnecessarily!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: why same Sum formula highlight f9 shows different results

    In Excel 365, both formulae produce the result 18, as presented. However, in Excel 365, Array Formulae are recognised and evaluated. In earlier versions of Excel, you need to press Ctrl-Shift-Enter to commit them rather than just Enter.

  11. #11
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    I am using excel 2010 and I pressed ctrl-shift-enter but the result is 3?
    Last edited by AliGW; 02-08-2022 at 03:31 AM. Reason: PLEASE don't quote unnecessarily!

  12. #12
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    Untitled27.png

    see the curly bracket? which means I pressed ctrl-shift-enter and the result is 3 not 18? why?
    Last edited by Bobgiant; 02-08-2022 at 10:06 AM.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: why same Sum formula highlight f9 shows different results

    The attachment is invalid.

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: why same Sum formula highlight f9 shows different results

    Hi,

    This highlights one of the dangers of using F9 to perform piecemeal evaluation of formulas.

    No matter what your version of Excel, using F9 to evaluate a section of a formula will always coerce an array evaluation of that section, even if that section will not actually be array-evaluated when the entire formula itself is committed (either with ENTER or CTRL+SHIFT+ENTER).

    Using the Evaluate Formula dialog is a more reliable method.

    That said, this does not explain why the OP is seeing different results.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  15. #15
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: why same Sum formula highlight f9 shows different results

    @ XOR LX

    How do you use Evaluate Formula dialog? What is it?

    wow ok I found it. I never used that button before.
    Last edited by Bobgiant; 02-08-2022 at 10:16 AM.

  16. #16
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: why same Sum formula highlight f9 shows different results

    With the cell containing the formula selected, go to the Formulas ribbon | Evaluate Formula.

+ 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. Replies: 2
    Last Post: 07-12-2021, 10:07 AM
  2. [SOLVED] Formula Shows 0 results (but shouldn't)
    By Necroscope in forum Excel General
    Replies: 6
    Last Post: 05-27-2021, 10:00 AM
  3. [SOLVED] Formula shows as True, should shows as False
    By Eduards in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-07-2018, 12:11 PM
  4. [SOLVED] Long formula results shows up twice
    By concepo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2016, 04:43 PM
  5. [SOLVED] Vlookup formula to select and highlight (conditional formatting) multiple results
    By hbomb1927 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 03:27 PM
  6. Formula BOx shows Results but Cell Does not
    By Dcdrj2 in forum Excel General
    Replies: 4
    Last Post: 03-23-2007, 07:20 PM
  7. Highlight formula results that have a blank value
    By alexwren in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2007, 05:47 PM

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