+ Reply to Thread
Results 1 to 4 of 4

Substitute/Replace Then Extract

  1. #1
    Registered User
    Join Date
    05-20-2020
    Location
    Arizona
    MS-Off Ver
    Excel for Max (Version 16.35)
    Posts
    1

    Substitute/Replace Then Extract

    Hi All! First time post here. I'm in need of help with a substitute and extract formula. Please see below:

    Original Text: (Cell - A1)

    website.com/page/?oid=20&affid=18&sub2=law%20firm%20leads%20perfect&gclid=CjwKCAjwqpP2BRBTEiwAfpiD-zTJceJOTTrBUiTpANk46O3pk5j_EOInxuDItgVbZnqh7MRvBCahLhoCifMQAvD_BwE

    Desired Output:

    law firm leads

    Initial Thoughts:

    Substitute the 3rd "=" with unique character "^^"
    Substitute the 3rd "&" with unique character "^^"
    Substitute text "%20" with blank space " "
    Then extract the phrase law firm leads between the two "^^" characters

    I'm just having trouble writing this as an all in one formula.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Substitute/Replace Then Extract

    Hi,
    sorry but your request is not understood. Please upload an excel sample file .See instructions in the yellow banner at the top of the page.

    Thanks.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Substitute/Replace Then Extract

    As per your initial thoughs:
    Please Login or Register  to view this content.
    returns "law firm leads perfect"

    To returns "law firm leads":
    Please Login or Register  to view this content.
    Quang PT

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

    Re: Substitute/Replace Then Extract

    Another option
    =SUBSTITUTE(TRIM(MID(SUBSTITUTE(SUBSTITUTE(C2,"=",REPT(" ",100),3),"&",REPT(" ",100),3),100,100)),"%20"," ")

+ 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] Replace/Substitute function
    By mp3909 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2020, 06:18 AM
  2. Replace/substitute after this formula
    By bweil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2019, 01:15 PM
  3. FIND REPLACE SUBSTITUTE I am not sure which one please help
    By neilclark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2018, 07:32 PM
  4. Substitute or replace letters
    By benbi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2015, 05:02 PM
  5. [SOLVED] Tricky SUBSTITUTE or REPLACE
    By bibu in forum Excel General
    Replies: 7
    Last Post: 03-16-2014, 01:38 PM
  6. [SOLVED] substitute/replace until
    By JanRaven in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2012, 12:03 PM
  7. Substitute/Replace
    By Viktor Ygdorff in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-17-2006, 07:40 AM

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