+ Reply to Thread
Results 1 to 11 of 11

Find and delete *

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Find and delete *

    I have a database with number values and some of the values have *after them e.g. '463*. Is there any quick way to remove the * but keep the number without having to go through every cell and check. Find does not work with *. I need to use the sheet to do macro coding and the code wont work witht he * in.

    Any help would be appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Find and delete *

    Hi.

    Could you post a sample data file?
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    02-26-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find and delete *

    I could send a mock one? An example would be BA2-BA65 - 2, 4, 5, 6, '75*, 8, 9, 10, 11, '8*... other number. If that makes any sense :/

    Thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Find and delete *

    Try this macro:

    findandreplace.xlsm

  5. #5
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: Find and delete *

    =substitute(a1,"*","")
    Regards,
    abdul

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Find and delete *

    Quote Originally Posted by Laura343 View Post
    Find does not work with *
    Whenever you are finding the wildcard characters then add ~ in front of the character like this

    In Find What Box
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find and delete *

    hi Laura343, welcome to the forum. select the range you want to replace, then press CTRL + H.
    Find What:
    ~*
    Replace with:

    so it's finding "~*" & replace with nothing. the tilde sign is for you to really find asterisk instead of a wildcard

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find and delete *

    Why not try Find/Replace

    Select your range/column
    Find what:=
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Replace with:=
    Leave blank

    * on its own is a wild card and will clear everything
    by preceding it with tilde (~) ,Excel looks for the character * only.

    If you have also leading apostrophes use Find/Replace again

    Text to Columns can also do this, use * as your delimiter.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  9. #9
    Registered User
    Join Date
    02-26-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find and delete *

    Hi,

    Your Macro did work however I need the numbers with the stars to be replaced in the same cell. Thank you though!

  10. #10
    Registered User
    Join Date
    02-26-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find and delete *

    Thank you thats great! I only want to delete the * from the end of the numbers I have in the cell. So now I can find the numbers with * on the end but is there a way to get rid of the * without going through each one seperatly? Thank you for your help!

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Find and delete *

    Make use of REPLACE ALL button

+ 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