+ Reply to Thread
Results 1 to 21 of 21

Changing last character in a cell based on the character before it

Hybrid View

  1. #1
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Changing last character in a cell based on the character before it

    Hi,
    I think it can be solved with lookup table. I listed your letters as a table and used that to change last table.
    =LEFT(D2,LEN(D2)-1)&VLOOKUP(RIGHT(D2,1),$A$2:$B$8,2,0)

    The only problem here is, there are 2 letets for letter S and vlookup will pick only one.

    Uploading file here
    Attached Files Attached Files
    Appreciate the help? CLICK *

  2. #2
    Registered User
    Join Date
    04-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing last character in a cell based on the character before it

    Thanks. Really close but in need that differentiation in the two different different S endings.

  3. #3
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Changing last character in a cell based on the character before it

    What is the difference between them. I mena Z after S and N after S.
    What is the logic behind this letters. Under what condition the last letter is Z or N?

  4. #4
    Registered User
    Join Date
    04-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing last character in a cell based on the character before it

    If the second last letter is "I" then the "S" should be converted to "N". If the second last letter is "B" then the "S" should be converted to "Z". Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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