+ Reply to Thread
Results 1 to 10 of 10

Sum Index formula - glitch

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Sum Index formula - glitch

    I'm using the following formula to sum from a cell to the end of the columns.
    For instance sum from cell C3 to the end of row 3.

    SUM((C3:INDEX(3:3,MATCH(16384,3:3))))

    It works except that if I have a dash "-" as the first entry, it seems to go backwards a cell.
    In the table below, the yellow cells are incorrect, the sum should be zero.

    The dash "-" is required instead of 0.


    Capture.PNG
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Sum Index formula - glitch

    Easy!

    =IF(B3="-",0,SUM((B3:INDEX(3:3,MATCH(16384,3:3)))))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Sum Index formula - glitch

    Another option
    =SUM(B3:INDEX(3:3,MATCH(16384,3:3)+1))

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Sum Index formula - glitch

    For the case if you use xls format or old excel version
    Please Login or Register  to view this content.
    for new format
    Please Login or Register  to view this content.
    SUM function work with used range automatically and range for whole row or column doesn't reflect to calculation time.

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

    Re: Sum Index formula - glitch

    Why not just:
    =SUM(B3:$XFD3)

    Is this too inefficient?

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Sum Index formula - glitch

    @Gregb11 try to save it to xls format.
    however
    another one option
    Please Login or Register  to view this content.

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

    Re: Sum Index formula - glitch

    @BMV - Why do you care about xls file? the OP attached an xlsx file.

  8. #8
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Sum Index formula - glitch

    @Gregb11 i think about not only this OP but about anybody who looking for solution.

  9. #9
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Sum Index formula - glitch

    Thanks to all for the suggestions.
    The solutions by AliGW and Fluff13 worked.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Sum Index formula - glitch

    Glad to help & thanks for the feedback.

+ 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. When I sort the part numbers the formula gets messed up.....is it a glitch?
    By Rlong1818 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-07-2015, 04:40 PM
  2. Ctrl+F glitch
    By mattmc419 in forum Excel General
    Replies: 3
    Last Post: 06-06-2014, 08:42 AM
  3. [SOLVED] Index-Match-Lookup for Last Value in a column - Glitch or Solution?
    By Btray90 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-04-2013, 08:38 PM
  4. [SOLVED] IF(MIN) Formula glitch
    By dmad81 in forum Excel General
    Replies: 5
    Last Post: 06-01-2012, 11:11 AM
  5. [SOLVED] VBA. populate array formula with VBA (glitch, problem)
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2012, 03:35 PM
  6. Index Function Glitch?
    By CTRLZ in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 04:05 PM
  7. SUM GLITCH, What can I do?
    By n2lectual in forum Excel General
    Replies: 5
    Last Post: 03-21-2008, 02:43 PM

Tags for this Thread

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