+ Reply to Thread
Results 1 to 9 of 9

Formula to generate next number to follow when numbers has a letter prefix

  1. #1
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Formula to generate next number to follow when numbers has a letter prefix

    I have a cell with a formula that determines the last code used on a list of items Ex. T1312. What formula can I use to read the code that should be used next, which would be T1313 (T1312+1). The prefix T always stays T.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to generate next number to follow when numbers has a letter prefix

    Enter in any cell and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Formula to generate next number to follow when numbers has a letter prefix

    if you have T1312 in (for example) A2 all you have to do is grab the lower right corner box and drag down and it will index to T1313.
    or if you want a formula this would work... ="T"&ROW(A1312) and drag that down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: Formula to generate next number to follow when numbers has a letter prefix

    Capture.JPG

    I probably did not explain my situation correctly. I have a list of Vendors with a code assigned to each one. Column A for the vendor code, column B for the Vendor's name. Vendor's name get added daily alphabetically, therefore the codes are not necessarily in order. In order to know what code is available to use next, I have a formula give me the highest value on the column of Vendors Code, with that I can tell which code should be used next. To make it easier, I would like to have a formula that will read the next code available to use, that is, if the highest value (last code used) was 1312, the next one to use should be 1313.

  5. #5
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: Formula to generate next number to follow when numbers has a letter prefix

    Capture.JPG
    I probably did not explain my situation correctly. I have a list of Vendors with a code assigned to each one. Column A for the vendor code, column B for the Vendor's name. Vendor's name get added daily alphabetically, therefore the codes are not necessarily in order. In order to know what code is available to use next, I have a formula give me the highest value on the column of Vendors Code, with that I can tell which code should be used next. To make it easier, I would like to have a formula that will read the next code available to use, that is, if the highest value (last code used) was 1312, the next one to use should be 1313.

  6. #6
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Formula to generate next number to follow when numbers has a letter prefix

    may be try this formula
    ="T"&MID(C1,2,LEN(C1))+1

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Formula to generate next number to follow when numbers has a letter prefix

    Last code:
    =LOOKUP("ZZZ",A:A)
    Next Code:
    ="T"&MID(LOOKUP("ZZZ",A:A),2,10)+1
    Quang PT

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Formula to generate next number to follow when numbers has a letter prefix

    so if you have the last value in cell C1 then use this in C2
    ="T"&MID(C1,2,10)+1

  9. #9
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: Formula to generate next number to follow when numbers has a letter prefix

    ="T"&MID(C1,2,10)+1
    It worked! Thank you so much! It does exactly what I've been trying to accomplish.
    Last edited by AliGW; 04-02-2018 at 08:33 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. MAX Function to obtain highest value of numbers with a letter prefix
    By HipAcct in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2018, 12:17 PM
  2. How to generate a letter as an output instead of a number?
    By limpfisch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2017, 07:56 PM
  3. Need formula that will generate Cell number and Letter
    By Jetpilot69 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-14-2014, 04:04 AM
  4. Validation Number number number + letter depending on numbers
    By Adamitus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2012, 04:28 AM
  5. Letter prefix to numbers
    By adeleex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2011, 05:49 AM
  6. I need to add 3 letter prefix to existing numbers in list
    By Nick Renegade in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-05-2010, 07:52 AM
  7. Extract Numbers and prefix letter
    By aromaveda in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-22-2009, 09:00 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