+ Reply to Thread
Results 1 to 3 of 3

Severing LAUS codes

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Severing LAUS codes

    Hi,

    I'm working with some Data from the BLS website which I need to cut down to another code form (CBAS). In order to that I need to remove the first five letters (which form an acronym describing the data) and the first two numbers (which represent the FIPS state code) as well as the last number (which indicates the data type).

    For example:

    LAUMC01107603

    with the portions that need to be removed in parentheses

    (LAUMC01)10760(3)

    would become

    10760

    I need to do this for a column of these codes which contains about a thousand entries.

    Thanks
    Last edited by shocking; 07-22-2010 at 03:08 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Severing LAUS codes

    Try =mid(a1,8,5) if all strings have the same length and pull down as needed

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Severing LAUS codes

    If they are not the same length
    =RIGHT(LEFT(A4,LEN(A4)-1),LEN(A4)-8)

    If you need a number rather than text
    =RIGHT(LEFT(A4,LEN(A4)-1),LEN(A4)-8)*1


    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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