+ Reply to Thread
Results 1 to 6 of 6

delete text, keep numbers

  1. #1
    Registered User
    Join Date
    12-29-2003
    Posts
    43

    delete text, keep numbers

    Column D has either 4 letters or 4 numbers in it. I need to make the field blank if it is letters and keep only the fields with the numbers. I thought I could do some formula in another column with an if statement, but I can't seem to come up with a solution.
    Last edited by Annelie; 08-17-2010 at 08:27 AM.
    Annelie

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: delete text, keep numbers

    =if(isnumber(a1), a1, "")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: delete text, keep numbers

    try this

    Please Login or Register  to view this content.
    Last edited by Mordred; 08-14-2010 at 05:58 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: delete text, keep numbers

    Sorry shg, you beat me to it.

  5. #5
    Registered User
    Join Date
    12-29-2003
    Posts
    43

    Re: delete text, keep numbers

    Both solutions work great. Mordred's answer, for this project would be better, because I do not have to create a new column. However, the routine must stop at the last row. Can I get more help with that?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: delete text, keep numbers

    Numerous routes - one which avoids cell by cell iteration would be:

    Please Login or Register  to view this content.
    edit:

    If the values are constants, true numeric values and pending number of non-contiguous ranges you might get away with

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 08-16-2010 at 11:05 AM.

+ 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