+ Reply to Thread
Results 1 to 7 of 7

replace "?" character

  1. #1
    Registered User
    Join Date
    07-31-2016
    Location
    tirana
    MS-Off Ver
    2016
    Posts
    16

    replace "?" character

    I ' m trying but I doesnt recongise it

    =SUBSTITUTE(A2,"?"," ",)

    from this text

    12m YELLOW ?????aa2

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: replace "?" character

    ? is a wildcard character
    =SUBSTITUTE(A2,CHAR(63)," ")

    https://support.office.com/en-gb/art...rs=en-GB&ad=GB

    Edit: Forget above post. Red Herring. You needed to omit the last comma as instance number is optional.

    =SUBSTITUTE(A2,"?"," ")
    Last edited by Neil_; 08-24-2016 at 05:18 AM.
    Frob first, tweak later

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: replace "?" character

    Try y=this:

    =SUBSTITUTE(A2,CHAR(63),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: replace "?" character

    Either include an instance value or remove the last comma

    =SUBSTITUTE(A2,"?"," ")

    I don't think SUBSTITUTE recognises wildcards, like some other formulas do. ? and CHAR(63) would be the same thing.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: replace "?" character

    try this:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-31-2016
    Location
    tirana
    MS-Off Ver
    2016
    Posts
    16

    Re: replace "?" character

    Thank you all

    char 63 dit it

    oh and I also had one comma to many

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: replace "?" character

    You're welcome!

+ 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. replace all defined range names in the sheet that start with "Street" to "Road"
    By matrex in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-04-2016, 08:53 AM
  2. Replies: 9
    Last Post: 03-05-2016, 12:53 AM
  3. Replies: 4
    Last Post: 08-20-2014, 07:14 AM
  4. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  5. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  6. [SOLVED] how to replace the "Alt-Enter" character in a cell with sway "@"
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-04-2014, 05:55 AM
  7. [SOLVED] Replace all BLANK cells in column with header title "Balance" to "0"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 09:25 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