+ Reply to Thread
Results 1 to 4 of 4

alphanumeric counter

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Minnesota, USA
    MS-Off Ver
    Excel Mac
    Posts
    2

    alphanumeric counter

    I'm probably making this harder than it needs to be, but here goes. I need to automatically populate a column with an alphanumeric MFR0001 to MFR9999 and am currently using the formula below to add 1 to the start point (A1)...

    A1=MFR0001
    Formula in A2 =LEFT(C1,3)&(RIGHT(C1,4)+1)

    This works perfectly if I start at MFR1000, but breaks and drops the 000 if I use it on the number I need to start with (MFR0001).

    Can anyone give a guy a hand on this?
    Last edited by NBVC; 06-23-2009 at 10:48 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Stuck on alphanumeric formula mess

    Try:

    =LEFT(C1,3)&TEXT(RIGHT(C1,4)+1,"0000")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Minnesota, USA
    MS-Off Ver
    Excel Mac
    Posts
    2

    Re: alphanumeric counter

    THANK YOU!

    I thought I tried that already, but missed the simplicity of it (I kept trying to add the TEXT function into the mix with the "0000").

    Thanks again.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: alphanumeric counter

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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