+ Reply to Thread
Results 1 to 3 of 3

Formula for Alpha-Numerical IDs

  1. #1
    Registered User
    Join Date
    01-27-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    4

    Formula for Alpha-Numerical IDs

    Greetings. I am trying to write a formula that adds zeros to the beginning of an identifier, if its numbers only. If the identifier has letters, I want the formula to return the same value.

    Essentially all the number-only identifiers should be 9 digits.

    For example: CA12345 in column A should return CA12345 in column B. But if the identifier is 12345, I want it to add 0000 to the beginning, so column B would return 000012345.

    Usually the identifiers have letters in the middle of the string of text, for example 1234ABC5.

    I would like column C to display "Good" if its an alphanumerical ID, but show the number of 0s if its a numerical value less with less than 9 digits.

    I've attached an example workbook for reference.

    Thanks,
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Formula for Alpha-Numerical IDs

    Hi,

    I don't know if Columns B and C are your "helper columns" and is actually needed, but you can just put this in D2 copied down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-27-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Formula for Alpha-Numerical IDs

    Thanks, works great. Additional columns would be helpful for user, but not necessary. Appreciate the help.

+ 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. Replies: 3
    Last Post: 11-09-2017, 08:22 AM
  2. Extraction of numerical digits from a mixed alpha numerical Excel cell.
    By JustWilliam in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2016, 01:44 PM
  3. [SOLVED] How to generate automatic customer ID - Numerical or Alpha numerical
    By bala04msw in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-25-2016, 07:01 AM
  4. [SOLVED] Formula needed to extract numbers from alpha numerical entry please
    By Twaddy006 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2014, 05:26 PM
  5. Formula to create alpha numerical SKU's
    By Mhunt in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-10-2013, 07:10 AM
  6. Alpha/Numerical numbers
    By rhani111 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-27-2006, 09:09 PM
  7. Numerical grade to Alpha character
    By capecrusader in forum Excel General
    Replies: 6
    Last Post: 08-20-2005, 09:05 AM

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