+ Reply to Thread
Results 1 to 5 of 5

sum sequential numbers

  1. #1
    Registered User
    Join Date
    11-21-2016
    Location
    Yorkshire
    MS-Off Ver
    2016
    Posts
    3

    sum sequential numbers

    How can I count the number of summed
    sequential numbers in a single cell until a target is reached

    Cell 111111555556112222222222
    Last edited by philipswaby; 08-10-2018 at 03:09 PM.

  2. #2
    Forum Contributor
    Join Date
    07-05-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2016
    Posts
    165

    Re: sum sequential numbers

    So you want to sum individual digits until a set limit is met?

    ex. Cell 111111555556112222222222

    1+1=2
    2+1=3
    3+1=4

    or

    It searches through the call value as a string and once a different digit appears, it sums them?

    First digit= 1
    *Searching
    Next (new) digit = 5
    1+5 = 6
    *Searching...
    Last edited by Xer2; 08-10-2018 at 03:15 PM.
    Click on the * icon if this post has been helpful.

  3. #3
    Registered User
    Join Date
    11-21-2016
    Location
    Yorkshire
    MS-Off Ver
    2016
    Posts
    3

    Re: sum sequential numbers

    1+1=2
    2+1=3

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: sum sequential numbers

    =match(false,e2>=mmult(--(row(indirect("1:"&b2))>=transpose(row(indirect("1:"&b2)))),--mid(a2,row(indirect("1:"&b2)),1)),-1) cse
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: sum sequential numbers

    Another way to add

    =SUM(1*MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)) CTRL + SHIFT + ENTER

    OR

    =SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

    Decio
    Last edited by deciog; 08-16-2018 at 08:47 AM.

+ 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] VBA code for sequential numbers for a column containing letters and numbers
    By YuriyBaron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2018, 10:03 PM
  2. VBA: Help with sequential numbers.
    By latin_quarter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2009, 01:09 AM
  3. Using If to Sum() non-sequential numbers
    By robert_shindorf in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-23-2009, 08:20 PM
  4. Using sequential numbers
    By Rhonda F in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2007, 03:34 AM
  5. sequential numbers
    By phildaug in forum Excel General
    Replies: 8
    Last Post: 05-10-2007, 01:18 PM
  6. Sequential Numbers
    By abcdexcel in forum Excel General
    Replies: 3
    Last Post: 01-18-2006, 07:10 AM
  7. Sequential numbers
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2005, 03:05 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