+ Reply to Thread
Results 1 to 3 of 3

Replacing first & last letters in text string

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Denver, Colorado
    MS-Off Ver
    2016
    Posts
    6

    Replacing first & last letters in text string

    This is silly, but I need a formula to replace the first letter in a name with the last letter. Example: John Smith --> Sohn Smitj. None of the names have middle initials.

    Thank you!!

  2. #2
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Replacing first & last letters in text string

    Suppose the name is in A1. You can use this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This gives Hohn Smitj, not Sohn Smitj. I'm not sure where the S came from in your example.
    Last edited by SlipEternal; 07-03-2017 at 03:32 PM.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Replacing first & last letters in text string

    Looking at your description rather than the example (which does not match the description), I came up with =PROPER(SUBSTITUTE(A2,LEFT(A2,1),RIGHT(A2,1))).
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replacing strings/ replacing numbers and letters
    By Insert Name in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2015, 01:15 PM
  2. [SOLVED] Replacing specific text in string from same column...
    By netsecrets00 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2014, 02:56 AM
  3. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  4. [SOLVED] Replacing one character in variable position in a text string
    By toontopo in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-14-2012, 01:12 PM
  5. Replacing certain characters in a text string
    By skatmandu2002 in forum Excel General
    Replies: 1
    Last Post: 06-16-2008, 09:00 AM
  6. Replacing a string within a text file
    By DHallam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2005, 01:05 AM
  7. [SOLVED] Formula for Replacing Text in a String?
    By David Godinger in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-16-2005, 10: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