+ Reply to Thread
Results 1 to 5 of 5

Delete 1 but not 11,12,13, ect

  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Delete 1 but not 11,12,13, ect

    Hey, I have a list of movies as follows:

    movie 1
    movie 14
    movie 21
    movie 11

    How do I change the "movie 1" to "movie" without deleting the other 1's from values like 11,12,13,ect.

    Thanks all for your help!
    Last edited by trippin; 04-20-2010 at 12:59 AM.

  2. #2
    Registered User
    Join Date
    11-09-2007
    Posts
    42

    Re: Delete 1 but not 11,12,13, ect

    Do a find and replace and select "Match entire contents of cells" under the options button.

    Ctrl+H brings up find and replace. The options button is in the bottom right.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delete 1 but not 11,12,13, ect

    trippin,

    Detach/open workbook "Delete 1 but not 11 12 13 - trippin - SDG10.xls" and then run the "DeleteOne" macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Registered User
    Join Date
    11-09-2007
    Posts
    42

    Re: Delete 1 but not 11,12,13, ect

    Why code anything when find and replace does the trick?

  5. #5
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Delete 1 but not 11,12,13, ect

    Quote Originally Posted by Uziel View Post
    Why code anything when find and replace does the trick?
    Find and replace doesn't work for this. If you try to replace " 1" with "" it will remove the 1 from the numbers "11, 12, 21, ect."


    Quote Originally Posted by stanleydgromjr View Post
    trippin,

    Detach/open workbook "Delete 1 but not 11 12 13 - trippin - SDG10.xls" and then run the "DeleteOne" macro.
    THANK YOU! This worked perfectly. Thanks for spending the time to make this macro for me.

+ 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