+ Reply to Thread
Results 1 to 14 of 14

Replace asterisk with slash

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Replace asterisk with slash

    Hello
    I have a sheet with a lot of data including * in a lot of cells . The asterisk is as a character
    I want to replace * with / a slash
    I couldn't replace it with excel replace feature

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Replace asterisk with slash

    The escape character in Excel is the ~. So, to find and replace all asterisks, search for ~*
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    I used this structure ~* and replace with /
    But my problem is that there are a lot of data with that form 1*1 2*1 5*1 6*2
    After replacing the data turned into dates !!!

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Replace asterisk with slash

    using your example of 1*1 2*1 5*1 6*2 dosent turn into dates for me.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    Here's an example
    Attached Files Attached Files

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Replace asterisk with slash

    Hi format the cells to text and try or may be apply the below formula in adjacent sheet and take a new copy

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  7. #7
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Replace asterisk with slash

    Is the 1*1 2*1 5*1 6*2 all in one cell?

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    Quote Originally Posted by boopathiraja View Post
    Hi format the cells to text and try or may be apply the below formula in adjacent sheet and take a new copy

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Worked but it will be exhausting as the data all over the sheet in different ranges

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    Quote Originally Posted by mike7952 View Post
    Is the 1*1 2*1 5*1 6*2 all in one cell?
    No sir every piece of data is in one cell
    1*1 in a cell and so one

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Replace asterisk with slash

    Try this

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-08-2013
    Location
    Chennai, INDIA
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Replace asterisk with slash

    Though the cells with data are in text format, add ' before the texts like '1*1 and try replacing
    Bala

  12. #12
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    Quote Originally Posted by mike7952 View Post
    Try this

    Please Login or Register  to view this content.
    Perfect.. This is the best solution

  13. #13
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Replace asterisk with slash

    Just for fun.. here's another one.. no loop

    Please Login or Register  to view this content.
    Last edited by apo; 11-08-2014 at 08:08 AM.

  14. #14
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Replace asterisk with slash

    Quote Originally Posted by apo View Post
    Just for fun.. here's another one.. no loop

    Please Login or Register  to view this content.
    Yes very well ... very good line of code .. Thanks Mr. apo

+ 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. [SOLVED] Find and Replace an asterisk "*"
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 10-25-2013, 12:14 PM
  2. Find and replace asterisk
    By indimonk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2012, 05:30 AM
  3. Left of slash
    By jetsfan3261 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2009, 12:15 PM
  4. [SOLVED] How do I replace an asterisk without replacing everything?
    By Trw in forum Excel General
    Replies: 4
    Last Post: 06-09-2006, 06:00 PM
  5. [SOLVED] Zero with a slash
    By Stan in forum Excel General
    Replies: 7
    Last Post: 06-27-2005, 04:05 PM

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