+ Reply to Thread
Results 1 to 10 of 10

Replace special character

  1. #1
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Replace special character

    Hi ,

    I have a date with serial number in column A and name in B. Names are prefixed with title like Mr. Mrs.

    Is there any vba code to copy the entire B in same as in C and Remove all Title before the name.

    The problem is that the Title is not in specific format. Some contains Caps, some are with space and double space and some are in Small


    No. Name
    1 Mr.HARRY (need Reault in C as "Harry")
    2 mR.OLIVER
    3 mr.JACK
    4 Mr.ALFIE
    5 MR.CHARLIE
    6 MR.THOMAS
    7 MR.JACOB
    8 Mr. JAMES
    9 mR. JOSHUA
    10 mr. WILLIAM
    11 Mr. ETHAN
    12 MR. GEORGE
    13 MR. RILEY
    14 MR. DANIEL


    See attachment for more examples.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Replace special character

    How about ...

    A
    B
    C
    D
    1
    No. Name Result
    2
    1
    Mr.HARRY HARRY C2: =TRIM(IFERROR(MID(B2, FIND(".", B2) + 1, 99), B2))
    3
    2
    mR.OLIVER OLIVER
    4
    3
    mr.JACK JACK
    5
    4
    Mr.ALFIE ALFIE
    6
    5
    MR.CHARLIE CHARLIE
    7
    6
    MR.THOMAS THOMAS
    8
    7
    MR.JACOB JACOB
    9
    8
    Mr. JAMES JAMES
    10
    9
    mR. JOSHUA JOSHUA
    11
    10
    mr. WILLIAM WILLIAM
    12
    11
    Mr. ETHAN ETHAN
    13
    12
    MR. GEORGE GEORGE
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Replace special character

    will do.

    is there any vba. because i have more than 3 lakhs name in multiple sheets

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Replace special character

    or use text to column and use . dot as a seperator.

    After that you can delete the first column.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Replace special character

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Replace special character

    perfect. Thank you. thanks a ton

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Replace special character

    You're welcome.

  8. #8
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Replace special character

    hey is there any solution if there is no "."
    if data is like below

    M r HARRY
    m r OLIVER
    m r JACK
    M r ALFIE
    M r CHARLIE
    M r THOMAS
    M r JACOB
    M r JAMES
    m r JOSHUA
    m r WILLIAM
    M r ETHAN
    M r GEORGE
    M r RILEY
    M r DANIEL
    M r SAMUEL
    m r NOAH
    m r OSCAR
    M r JOSEPH
    M r MOHAMMED
    M r MAX
    M r DYLAN
    M S Aaliyah
    M S Aamanda
    M S Aamani
    M S Bailee
    M S Baileigh
    M S Bailey
    M rS Eadda
    M rs Eadmund
    M rs Eadwine
    m rs Edelburga
    m rS Edeline
    m rS Edeva
    M S Edie
    M S Gabbriel
    M S Gabbriella
    M S Gabby
    M S Gabi
    M S Gabrielle
    M rS Gella
    M rs Gemelle
    M rs Gena
    m rs Genee
    m rS Genesiss
    m rS Gabbriel
    M S Jessica
    M S Georgia
    M S Emma
    M S Olivia
    M S Hannah
    M S Grace
    M rS Sarah
    M rs Sophie
    M rs Samantha
    m rs Emily
    m rS Caitlin
    m rS Ella
    M S Tayla
    M S Brooke
    M S Rebecca
    M S Shania
    M S Courtney
    M S Kate
    M rS Madison
    M rs Charlotte
    M rs Lucy
    m rs Paige
    m rS Jade
    m rS Charlotte
    M S Jamie
    M S Sophia
    M S Maia
    M S Molly
    M S Casey
    M S Maria
    M rS Rebekah
    M rs Jessie
    M rs Gabrielle
    m rs Michelle
    m rS Morgan
    m rS Angel
    M S Tegan
    M S Tiana
    M S Caitlyn
    M S Renee
    M S Julia
    M S Madeleine
    M rS Summer
    M rs Kaitlyn
    M rs Kelsey
    m rs Tessa
    m rS Alicia
    m rS Jamie

  9. #9
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Replace special character

    Hey Shg,

    I am waiting for your reply. Can you please help

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

    Re: Replace special character

    Please Login or Register  to view this content.

+ 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 EACH Nth occurrence a character in a string with another character
    By mattman7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-23-2016, 12:23 PM
  2. Need to highlight special character and the cells contains special character
    By dhilipan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2013, 01:36 AM
  3. How to vlookup a Column contain special character and replace it?
    By miraclesuki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2013, 05:03 PM
  4. to find and replace the special character in multiple worksheet in a workbook
    By Vinutha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-11-2012, 11:16 AM
  5. How to replace special character (square box) in cell
    By anilk.zee in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2012, 03:17 PM
  6. How to replace special character (square box) in cell
    By anilk.zee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2012, 12:10 PM
  7. [SOLVED] Special Character
    By Henry in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 08:10 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