+ Reply to Thread
Results 1 to 11 of 11

Remove Text in Cust. Codes

  1. #1
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Question Remove Text in Cust. Codes

    Dear Experts,

    Please check i need to remove text like....

    Remove
    AVA
    AVB
    AVC
    AWA
    AWB


    Please resolve this issue....
    Attached Files Attached Files
    Last edited by Navi_G; 06-10-2018 at 09:06 AM.
    Thanks & Regards,
    Navi_G

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Remove Text in Cust. Codes

    Navi_G,

    It's always a good idea to present us with what you want the results to look like...

    For starters, try in C2 copied down =IFERROR(SUBSTITUTE(B2,$E$2:$E$6,""),B2)

    Or to remove the double hyphen left by the above >> =IFERROR(SUBSTITUTE(B2,$E$2:$E$6&"-",""),B2)
    Last edited by jeffreybrown; 06-10-2018 at 09:24 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Re: Remove Text in Cust. Codes

    Remove column just as example and it not for helper

    Remove mean all text remove and 221-2018 shown as a result without remove column...

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,000

    Re: Remove Text in Cust. Codes

    Try

    =IF(ISNUMBER(LEFT(B2,3)+0),LEFT(B2,4)&RIGHT(B2,4),RIGHT(B2,4))

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Remove Text in Cust. Codes

    something like that?
    Done with PowerQuery

    B
    C
    1
    Cust. Codes result
    2
    221-AVA-2018 221-2018
    3
    222-AVB-2018 222-2018
    4
    223-AVC-2018 223-2018
    5
    224-AWA-2017 224-2017
    6
    225-AWB-2017 225-2017
    7
    226-AWC-2017 226-2017
    8
    AXA-2015 2015
    9
    AXB-2015 2015
    10
    AXC-2015 2015
    11
    AYA-2015 2015
    12
    227-AYB-2016 227-2016
    13
    228-AYC-2016 228-2016
    14
    229-AZA-2016 229-2016
    Attached Files Attached Files
    Last edited by sandy666; 06-10-2018 at 11:16 AM.

  6. #6
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Re: Remove Text in Cust. Codes

    Dear Sir,

    what steps involve please inform me for as a student of power query...
    Last edited by jeffreybrown; 06-10-2018 at 03:01 PM. Reason: Removed full quote!

  7. #7
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Re: Remove Text in Cust. Codes

    Quote Originally Posted by JohnTopley View Post
    Try

    =IF(ISNUMBER(LEFT(B2,3)+0),LEFT(B2,4)&RIGHT(B2,4),RIGHT(B2,4))
    Dear Sir,

    Formula is not working on:

    AXA-2015 FALSE
    AXB-2015 FALSE
    AXC-2015 FALSE
    AYA-2015 FALSE

    Please Help on this issue...

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Remove Text in Cust. Codes

    Quote Originally Posted by Navi_G View Post
    what steps involve
    1st. don't quote whole post
    2nd. open PowerQuery Editor, on the right side you'll see the steps or from the menu open Advanced Editor with steps detailed.

    For student:
    Microsoft Power Query for Excel Help
    Last edited by sandy666; 06-10-2018 at 12:27 PM.

  9. #9
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Re: Remove Text in Cust. Codes

    Thanks i try and inform you to what happend

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,000

    Re: Remove Text in Cust. Codes

    See attached
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Remove Text in Cust. Codes

    Hi,

    JohnTopley's formula works for all your given samples and should Not produce a FALSE...

    Here's another formula option for your given samples: =REPLACE(B2,SEARCH("A",B2),4,"")
    Formula copied down.

+ 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. Remove everything in a cell but two digit text codes? (whole column)
    By jdodge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2017, 05:58 PM
  2. Remove VBA codes after copyin sheet to a new workbook
    By phoenicx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-25-2016, 06:11 AM
  3. [SOLVED] Need separate codes to remove first and last character from cells
    By alchavar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2013, 04:48 PM
  4. [SOLVED] Remove error and integrate codes
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-24-2013, 07:16 PM
  5. combine macros & remove unwanted codes
    By johncena in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2013, 10:43 AM
  6. Remove spaces from my zip codes
    By vonneffdobermans in forum Excel General
    Replies: 8
    Last Post: 05-10-2009, 09:01 AM
  7. remove HTML codes from worksheet
    By joejoe123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2008, 02:47 PM

Tags for this Thread

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