+ Reply to Thread
Results 1 to 4 of 4

Removing Text from a cell

  1. #1
    Registered User
    Join Date
    04-27-2007
    Posts
    16

    Removing Text from a cell

    Hi, I have 2 columns of data which contains mainly numbers that are either 9 or 10 digits long. However some have got so words at he end which is what I want to remove.

    I thought of using text to colums but there is no space or symbol between the number and text.

    An example is

    0111111100ddddfffffddd

    or

    0222222222ddddd ffffff ddddd

    Any help greatly appreciated

    Steve
    Last edited by oldchippy; 10-23-2008 at 04:26 PM.

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

    In your example you show the number part starting with a zero, is that the actual case? If not then you could use this

    =LOOKUP(100^100,--MID(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&1234567890)),ROW(INDIRECT("1:"&LEN(A1)))))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    04-27-2007
    Posts
    16
    Thanks a lot. That has worked perfectly

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    ...

    Just for fun.
    If the number is 9-10digits long.
    =MID(A1,1,9+ISNUMBER(-MID(A1,10,1)))
    //Ola

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Toggle Text Color in Cell A, when Cell B clicked...
    By woodman650 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2008, 02:22 AM
  2. Append Cell Values To Text Files
    By Stefan.S. in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-17-2008, 11:09 AM
  3. Indirect Formula to return Text from one sheet to cell in another sheet
    By lou031205 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2007, 02:51 PM
  4. Scrolling text in a Cell
    By Robert Bob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2007, 06:47 PM
  5. Display a text in a cell
    By axmt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-20-2006, 05:11 AM

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