+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Contributor
    Join Date
    02-25-2008
    Posts
    100

    Separating three digits

    I have a cell that will contain between 2 and 4 characters. The first will always be a letter. The following digits will be a positive integer between 1 and 999.

    Let's say that cell is A1. Then in B1, I want the cell to display on the first letter. In cell C1, I want the number to be displayed.

    Hope this makes sense, any help as to what formulas to use would be great. Thanks!

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003 work, 2007 home
    Posts
    192

    Re: Separating three digits

    Please see attached- does this work for you?
    Attached Files Attached Files

  3. #3
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,661

    Smile Re: Separating three digits

    Good evening skatmandu2002

    B1 : =LEFT(A1,1)
    C1 : =VALUE(RIGHT(A1,LEN(A1)-1))

    The VALUE part of the formula ensures that the numeric part is shown as a number. If you would prefer it shown as a text string, just omit the VALUE part, thus : =RIGHT(A1,LEN(A1)-1).

    HTH

    DominicB
    Now available : Ultimate Add-In 2007
    Integrates directly into the Office Excel Ribbon


    Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
    90+ Utilities, 200+ Sub utilities last updated 25th April 2008
    Free!!

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Separating three digits

    or in b1
    =LEFT(A1,1)
    in c1
    =SUBSTITUTE(A1,B1,"")+0
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    02-25-2008
    Posts
    100

    Re: Separating three digits

    Perfect. You are all brilliant as usual.

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.2.0