+ Reply to Thread
Results 1 to 4 of 4

How can I replace a character in a string ?

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    How can I replace a character in a string ?

    I want to replace spaces in a string with a plus sign. Can somebody tell me how to do that?

    Before: South America
    After: South+America

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: How can I replace a character in a string ?

    Try
    =SUBSTITUTE(A1," ","+")

    If your text is in cell A1.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How can I replace a character in a string ?

    Have you tried Find + Replace

    What = " " space
    Replace = +

  4. #4
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: How can I replace a character in a string ?

    I found a way to do it.

    Please Login or Register  to view this content.
    Thanks for your help.

+ 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] replace nth occurrences of a character string within a cell...
    By herbie226 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2014, 02:50 AM
  2. [SOLVED] find the character position in a string of the last occurrence of a nominated character
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2014, 11:52 PM
  3. How Do I Replace The Last Character Of A String In A Macro?
    By pablowilks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2012, 02:21 PM
  4. Replace only one character in string.
    By ali84pk in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2012, 04:39 PM
  5. [SOLVED] How do I replace * as a character in a string in Excel?
    By nicolegt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2005, 07:06 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