+ Reply to Thread
Results 1 to 9 of 9

Return a lable based on a alpha-numeric value, or first numeral.

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    90

    Return a lable based on a alpha-numeric value, or first numeral.

    Hi, I don't know if this is possible or not. I want to be able to apply a label to a client's record based on their client number. The problem is the number also contains letters as in this example 30049910MULL. Clients with numbers beginning with 300 are from VIC and clients with numbers beginning with 200 are from NSW (Australian states). Any assistance is greatly appreciated. See the sample attached.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,433

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    Try this in C2:

    =IF(LEFT(B2,3)="300","VIC",IF(LEFT(B2,3)="200","NSW",""))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    You could do something like this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Return a lable based on a alpha-numeric value, or first numeral.

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


    many ways
    Last edited by sandy666; 05-28-2018 at 04:52 AM.

  5. #5
    Registered User
    Join Date
    08-14-2012
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    90

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    Thx again for your help Kersplash.

  6. #6
    Registered User
    Join Date
    08-14-2012
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    90

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    Thx Sandy.

  7. #7
    Registered User
    Join Date
    08-14-2012
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    90

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    Thx Pete, much appreciated.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    You are welcome

    have a nice day

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,433

    Re: Return a lable based on a alpha-numeric value, or first numeral.

    Glad to help, TPS - thanks for the rep.

    Pete

+ 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. [SOLVED] Alpha numeric with max 3 digit numbers based on criteria
    By Barieq in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-23-2018, 06:53 AM
  2. [SOLVED] Return 2 digit numeral from either side of - in an alpha numeric string
    By UnitedCloud01 in forum Excel General
    Replies: 3
    Last Post: 08-10-2017, 11:41 PM
  3. [SOLVED] Return latest Alpha / Numeric / Numeric Alpha Revision
    By cthompson30 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-16-2017, 10:31 AM
  4. [SOLVED] Extract and return only alpha, numeric and also specified characters from a parameter str
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2017, 11:27 AM
  5. [SOLVED] Formula to only return a number value in a column with mixed Alpha and Numeric values
    By AusVivienne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 03:17 AM
  6. Return Location of Alpha/Numeric String
    By Greg777 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-27-2011, 08:18 PM
  7. Replies: 2
    Last Post: 06-18-2010, 05:10 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