+ Reply to Thread
Results 1 to 6 of 6

Find next number in "sequence"

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Wales
    MS-Off Ver
    2007
    Posts
    64

    Find next number in "sequence"

    Hi all,

    I use a list of "part numbers", (NB Stored as text), in a spreadsheet, and I need to find the next avaiable part nunber. This would normally be fairly straightforward, but I need to know the next available part number at tjhe end off a specific "range",

    ie the main list would be:-

    1001aa
    1002aa
    5001aa
    5002ba
    9001aa
    9002aa,

    and I need to find the next available number in the "5000" range, (ie in the above case this would be "5003"?

    Any help appreciaed,

    Many thanks,

    Stu

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi Stu

    Given your sample data (assume in col A) then maybe:

    =5000+COUNTIF(A:A,"5*")+1

    this assumes that you have no part numbers 501ab for example though.

    Richard

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Next Numbers in Series

    Here is one option.

    I wasn't sure if all part numbers all had that format or if it was just an example.
    Meaning the layout can be improved.

    Hope it helped
    Ola
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-25-2008
    Location
    Wales
    MS-Off Ver
    2007
    Posts
    64
    Hi Richard...thanks for the reply, but unfortunately, there could be a 5010 in the series, although I will work on your suggestions and see if I can get sometheing similar to work..

    ta,

    Stu

  5. #5
    Registered User
    Join Date
    07-25-2008
    Location
    Wales
    MS-Off Ver
    2007
    Posts
    64
    Hi Olasa..what a mind blowing sollution!!!!

    I could not have thought of that in a million years ...you are obviously well versed in excel....brilliant.

    I will go with your that

    ..many thanks,
    Stu

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    ...

    Happy to have saved you a million years
    Thanks for the feedback
    Ola

+ 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