+ Reply to Thread
Results 1 to 14 of 14

Formula to remove first letter with dot in front of it from names

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Formula to remove first letter with dot in front of it from names

    Looking for a formula to remove First letter with dot in from it before the actual first name. This formula
    Please Login or Register  to view this content.
    is closest I could get but not working as desired

    Sample data format:

    HTML Code: 
    Thanks
    Attached Files Attached Files
    Last edited by bjnockle; 02-01-2020 at 12:38 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Formula to remove first letter with dot in front of it from names

    The results you show are not consistent
    The first returns Rudolph ( where does that come from?)
    The two last return the first letter and the dot you want to remove?

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to remove first letter with dot in front of it from names

    As Pepe has said your desired result does not match your description, but this will do what you have described.
    =TRIM(REPLACE(A2,1,2,""))

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    I have corrected the mistakes

    R. Tudolkh = Tudolkh (desired result)
    A. Gonna = Gonna (desired result)
    J. Robin = Robin (desired result)
    A. J = A. J (desired result)
    B.R. = B.R. (desired result)

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    Fluff13: Your proposed formula is not working as desired. It is removing the first letter from names with a letter and a dot before it. For example, John. This John does not have a letter and a dot before it and should only return John instead of removing John's first letter (Ohn).

    R. Tudolkh = Tudolkh (desired result)
    A. Gonna = Gonna (desired result)
    J. Robin = Robin (desired result)
    A. J = A. J (desired result)
    B.R. = B.R. (desired result)
    John = John (desired result)

    Thanks
    Last edited by bjnockle; 02-01-2020 at 12:31 PM.

  6. #6
    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,414

    Re: Formula to remove first letter with dot in front of it from names

    You haven't given an example like John in your sample - none of us is psychic.

    I think you'd better provide a more detailed set of sample data.

    EDIT: Please do not post-edit opening posts with extra details. You have made it look as if Fluff missed a requirement, when in fact the requirement had not been stated. That's bad form. Add new details in new posts, please.
    Last edited by AliGW; 02-01-2020 at 12:34 PM.
    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.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    AliGW: Yes, just realized that. Sorry.

    Thanks.

  8. #8
    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,414

    Re: Formula to remove first letter with dot in front of it from names

    Please read my edit to post #6 and take note. Thanks.

  9. #9
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    AliGW: Noted. Uploaded sample file.

    Thanks.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to remove first letter with dot in front of it from names

    If it's returning ohn for John, then you have a space before John, which is something else that you didn't mention.

  11. #11
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    Fluff13: Here is the sample book. Sorry for the confusion.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to remove first letter with dot in front of it from names

    Assuming that the result in B3 is wrong, try
    =TRIM(IF(OR(LEN(A2)<=5,MID(A2,2,1)<>"."),A2,REPLACE(A2,1,2,"")))

  13. #13
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to remove first letter with dot in front of it from names

    Fluff13: Excellent formula. Working as desired. You are simply the best. Will mark thread closed and post a new one for removing letters after first name.

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to remove first letter with dot in front of it from names

    You're welcome & thanks for the feedback

+ 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] letter hook front and back
    By makinmomb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2017, 10:13 AM
  2. Placeing a Letter in front of a #.
    By Enoble32 in forum Outlook Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2016, 01:19 PM
  3. Replies: 2
    Last Post: 11-14-2014, 10:41 AM
  4. Formula to remove last letter to use it in data validation
    By cgkmal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-03-2014, 09:22 PM
  5. [SOLVED] Move 1st letter from second word to the front
    By Serge77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2013, 05:11 PM
  6. How to take from 5th letter to the front?
    By Pbox7 in forum Excel General
    Replies: 5
    Last Post: 01-21-2009, 08:14 AM
  7. how to add a letter in front of each number in a cell
    By nmodafferi in forum Excel General
    Replies: 15
    Last Post: 06-16-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