+ Reply to Thread
Results 1 to 5 of 5

How do I pull just the numeric characters in a cell?

  1. #1
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    294

    How do I pull just the numeric characters in a cell?

    Hi,

    I have some cells that I want to pull just the numeric value so I can do a Vlookup off the number. Example: 12345678DM. In the cell next to it I would like to pull just the number while leaving the DM off. I can't always promise that the amount of numbers will be 8 so I can't just do a =left(A1,8) or something. Any ideas?

    Thanks as always,

    Eddie

  2. #2
    Ragdyer
    Guest

    Re: How do I pull just the numeric characters in a cell?

    Try this:

    =--LEFT(A1,LEN(A1)-2)

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "punter" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > I have some cells that I want to pull just the numeric value so I can
    > do a Vlookup off the number. Example: 12345678DM. In the cell next
    > to it I would like to pull just the number while leaving the DM off. I
    > can't always promise that the amount of numbers will be 8 so I can't
    > just do a =left(A1,8) or something. Any ideas?
    >
    > Thanks as always,
    >
    > Eddie
    >
    >
    > --
    > punter
    >
    >
    > ------------------------------------------------------------------------
    > punter's Profile:
    > http://www.excelforum.com/member.php...fo&userid=2044
    > View this thread: http://www.excelforum.com/showthread...hreadid=567213
    >



  3. #3
    ImpulseBlue
    Guest

    Re: How do I pull just the numeric characters in a cell?

    you can still do the left if you know that there will always be 2
    letters at the end:
    =LEFT(F5,LEN(F5)-2)

    Hope that helps

    punter wrote:
    > Hi,
    >
    > I have some cells that I want to pull just the numeric value so I can
    > do a Vlookup off the number. Example: 12345678DM. In the cell next
    > to it I would like to pull just the number while leaving the DM off. I
    > can't always promise that the amount of numbers will be 8 so I can't
    > just do a =left(A1,8) or something. Any ideas?
    >
    > Thanks as always,
    >
    > Eddie
    >
    >
    > --
    > punter
    >
    >
    > ------------------------------------------------------------------------
    > punter's Profile: http://www.excelforum.com/member.php...fo&userid=2044
    > View this thread: http://www.excelforum.com/showthread...hreadid=567213



  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by punter
    Hi,

    I have some cells that I want to pull just the numeric value so I can do a Vlookup off the number. Example: 12345678DM. In the cell next to it I would like to pull just the number while leaving the DM off. I can't always promise that the amount of numbers will be 8 so I can't just do a =left(A1,8) or something. Any ideas?

    Thanks as always,

    Eddie
    Hi Eddie,

    Try something like this,

    =LEFT(A1,FIND("DM",A1)-1)*1

    oldchippy

  5. #5
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    294
    Thanks everyone. They all work. You are the greatest.

    Eddie.

+ 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