+ Reply to Thread
Results 1 to 4 of 4

determine a classification of a mixed letter/number code field

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Shelton, Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    5

    determine a classification of a mixed letter/number code field

    Here is what I am trying to accomplish
    I have a field with codes like
    H0008934
    S0034213
    H002711
    B015612
    Etc

    What I am looking to do is have a formula that takes that field and if the field begins with an H, in another field it will spit out a specific text such as "Telaxian", and if it starts with a S or a B that field would say "Voyager"

    If the numbers after the letter didn't change I could use a simple nested if statement but with the varying numbers after it, I'm uncertain how to proceed.

    Thanks,

    Jason

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: determine a classification of a mixed letter/number code field

    Hi Jason,

    Welcome to the forum.

    You can use the below formula:-

    =IF(MID(A1,1,1)="h","Telaxian",IF(OR(MID(A1,1,1)="s",MID(A1,1,1)="b"),"Voyager",""))

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Shelton, Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: determine a classification of a mixed letter/number code field

    Perfect THanks!

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: determine a classification of a mixed letter/number code field

    You are welcome...

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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