+ Reply to Thread
Results 1 to 9 of 9

Creating Number Sequence in Groups of 10

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Creating Number Sequence in Groups of 10

    I need to create a grouped sequence that changes every 10 rows.
    So in Column A cell A2 the number would start at 01349 and every 10 cells it would decrease by 1 and go on down to 0
    so it would look something like this:
    01349
    01349
    01349
    01349
    01349
    01349
    01349
    01349
    01349
    01349
    01348
    01348 ...

    Help Please

  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,419

    Re: Creating Number Sequence in Groups of 10

    One way:

    =1349-ROUNDDOWN((ROW()-1)/10,0) and copy down


    Regards, TMS
    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 Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Creating Number Sequence in Groups of 10

    If A1 has your first value, in A2 use

    Please Login or Register  to view this content.
    Copy down
    Format cells as "0"#
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating Number Sequence in Groups of 10

    Try this one

    Please Login or Register  to view this content.
    and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    02-21-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Creating Number Sequence in Groups of 10

    Quote Originally Posted by TMShucks View Post
    One way:

    =1349-ROUNDDOWN((ROW()-1)/10,0) and copy down


    Regards, TMS
    Well this works except that it is giving me groups of 9 instead of 10.

  6. #6
    Registered User
    Join Date
    02-21-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Creating Number Sequence in Groups of 10

    Quote Originally Posted by Ace_XL View Post
    If A1 has your first value, in A2 use

    Please Login or Register  to view this content.
    Copy down
    Format cells as "0"#
    Thank you. This one worked the best!

  7. #7
    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,419

    Re: Creating Number Sequence in Groups of 10

    Thought I'd changed it. Should be:

    =1349-ROUNDDOWN((ROW(A1)-1)/10,0)

    The other version does work provided you start in Row 1 ... and, after the first batch of "1349" it will make groups of 10.

  8. #8
    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,419

    Re: Creating Number Sequence in Groups of 10

    =1349-INT((ROW(A1)-1)/10) would work too.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Creating Number Sequence in Groups of 10

    1349 in a1:a10
    a11=a1-1
    fill down job done
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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