
Originally Posted by
chasfh
I get a report from Google AdWords, and the last field in the URL column is my referral code, and I want strip out only the text after the part of the URL that says "ref=".
By example, here are a few URL strings I'm dealing with:
mywebsite.com/default.aspx?ref=oCustomerService
mywebsite.com/default.aspx?ref=oJobFinder
mywebsite.com/jobseeker/search/employerlink.aspx?billingAccountId=10452&ref=oFedex
mywebsite.com/default.aspx?ref=oHelpWanted4
mywebsite.com/default.aspx?ref=omywebsite
mywebsite.com/default.aspx?ref=oPartTimeemployment
mywebsite.com/jobseeker/search/employerlink.aspx?employer=Target&employer_name=Target&employer_id=7816&ref=oTarget
mywebsite.com/jobseeker/search/searchresults.aspx?city=San+Antonio&state=tx&ref=oCityJobSanAntonio
mywebsite.com/jobseeker/search/searchresults.aspx?city=Memphis&state=tn&ref=oCityJobMemphis
mywebsite.com/jobseeker/search/searchresults.aspx?city=New+York&state=ny&ref=ocityNewYork
mywebsite.com/default.aspx?ref=oJobOnline
mywebsite.com/jobseeker/search/employerlink.aspx?employer=Home%20Instead&employer_name=Home%20Instead%20Senior%20Care&ref=oSeniorCare
I want to strip out only the last part so that my answers are:
oCustomerService
oJobFinder
oFedex
oHelpWanted4
omywebsite
oPartTimeemployment
oTarget
oCityJobSanAntonio
oCityJobMemphis
ocityNewYork
oJobOnline
oSeniorCare
I had hoped I could do a text-to-column and separate it out based on "Other", being the entire string "ref=", but "Other" allows only one character. I can't do a standard TTC on "=" because some strings have multiple "="
Is there a handy formula I can use for this? Thank you.
Chuck
Bookmarks