+ Reply to Thread
Results 1 to 4 of 4

Excel Next Number in Alphanumeric Sequence

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Excel Next Number in Alphanumeric Sequence

    Hi Guys,

    I am trying to create a formula that can find the next usable number in a column of part numbers.
    In cell A1 a part type is entered, for example "AA" or "EC".
    In cell A2 I want the answer to the next available part number in the sequence.

    in Cells C2:C20000 there are various part numbers which continue to be entered continuously.

    EC102
    EC105
    AA001
    EC100
    SC025
    EC088 ETC.

    The current formula I have is:
    =A1&TEXT(SUBSTITUTE(LOOKUP(2,1/FIND(A1,C1:C20000),C1:C20000),A1,"")+1,"000")

    When EC is entered in cell A1,this would give EC089 as the next part number. I want the result to give EC106 as the next part number as this is the next one available.

    Any help would be great. This needs to be a single line solution and not a macro.

    Any help?

  2. #2
    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
    43,893

    Re: Excel Next Number in Alphanumeric Sequence

    This is case-sensitive (i.e. ec will give a different result to EC). Can you live with that?
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Re: Excel Next Number in Alphanumeric Sequence

    =CONCATENATE(A1,TEXT(LARGE(IF(LEFT(C2:C2500,2)=A1,(RIGHT(C2:C2500,3)*1),""),1)+1,"000"))

    It seems I have managed to work a solution with this!

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

    Re: Excel Next Number in Alphanumeric Sequence

    Pleasse read the forumrules, about crossposting.

    http://www.mrexcel.com/forum/excel-q...cremental.html
    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.

+ 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. Alphanumeric Sequence
    By donberino in forum Excel General
    Replies: 8
    Last Post: 08-15-2013, 06:22 AM
  2. Replies: 0
    Last Post: 12-12-2012, 06:39 PM
  3. Serial number creation / pre-defined alphanumeric sequence / formula
    By beano129 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2012, 02:27 AM
  4. Alphanumeric sequence
    By El Zorro in forum Excel General
    Replies: 7
    Last Post: 04-29-2011, 09:57 PM
  5. Create an alphanumeric sequence
    By footsoreaxe in forum Excel General
    Replies: 11
    Last Post: 11-25-2009, 02:51 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