+ Reply to Thread
Results 1 to 4 of 4

Formula to return first 3 numbers in account code

  1. #1
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Formula to return first 3 numbers in account code

    I have a column with a list of codes as follows,

    539-K600Z28
    757-K600F87
    757-K0033FZ
    757-K0037F1
    539-k0054s8
    757-0056RP

    The formula
    Please Login or Register  to view this content.
    returns only the first number. I am looking for a formula that will return the first 3 numbers, in this case.

    757
    539

    Thank You
    JImO
    Last edited by Jogier505; 08-03-2010 at 03:47 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to return first 3 numbers in account code

    Hello Jim, you can just change the 1 to a 3......

    =IF(L6="","",LEFT(L6,3) + 0)
    Audere est facere

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to return first 3 numbers in account code

    deleted .........................................
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

  4. #4
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Formula to return first 3 numbers in account code

    DLL,

    Thanks. Its easy when you know how!!

    JIm O

+ 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