+ Reply to Thread
Results 1 to 3 of 3

Convert first 3 letters into desired one in the formula cell.

  1. #1
    Forum Contributor
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2019
    Posts
    339

    Convert first 3 letters into desired one in the formula cell.

    Please look the below datas:-

    CNDDRSSCRRBK CND
    CNDKDRKCCRBRD CND
    CNSKDRKSCRRBK CNS
    PAPDRKCCRFBK PAP
    PAPDRKCCRPMR PAP
    PPOHDRKCCRSRD PPO
    PPRHDRKSCRFBK PPR
    SPSJDRSCCRBRD SPS
    SPSJDRSCCRSBK SPS

    I am applying the formula in cell B1, Left(A1,3) and result are CND.....SPS.But I want convert to PPO and PPR into PAP letters in the same column by formula i.e.B column.Is it possible?Please see the attach file for working and more clarification


    Regards

    Pradeep Kumar Gupta
    Attached Files Attached Files
    Last edited by PRADEEPB270; 07-30-2010 at 05:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540

    Re: Convert first 3 letters into desired one in the formula cell.

    try this in cell D3:
    Please Login or Register  to view this content.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Convert first 3 letters into desired one in the formula cell.

    similar to above but using inline array to shorten:

    =IF(OR(LEFT(B3,3)={"PPO","PPR"}),"PAP",LEFT(B3,3))

+ 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