My first post please, be patient with me. I searched the posts and found this article helpful but it doesn't offer a complete solution. https://www.mrexcel.com/forum/excel...remove-specific-text-cells-within-column.html.
I have 160,000+ rows in column C containing a URI for which I need to remove portions of the URI and\or split it into 2 columns.
Column C contains varying strings like the following (w\o quotes):
"/case/Default.aspx?pageId=1212"
"/case/Default.aspx?pageId=1085&ArtRef=US-WEL-19"
"/case/Default.aspx?PageId=1085&secureTId=b99itrG6PlV8GmmTO+cyHA=="
What I'd like to do (using VBA) is:
if cell content is like "/case/Default.aspx?pageId=1212" (without quotes) remove everything prior to and including = leaving just the 1212. In all cases the text prior to the number is "/case/Default.aspx?pageId="
if cell content is like "/case/Default.aspx?pageId=1085&ArtRef=US-WEL-19" (without quotes) split into 2 cells leaving 1085 in existing cell and copying US-WEL-19 to cell directly to the right (in this case D). The text after "ArtRef=" varies. Column C would contain 1085 and column D would contain US-WEL-19.
if cell content is like "/case/Default.aspx?PageId=1085&secureTId=b99itrG6PlV8GmmTO+cyHB==" remove everything except the 1085. There are various cells where the text after the number varies. I only care about splitting it if it contains something like "ArtRef=US-WEL-19". If it is anything else I just want to keep the number after pageID=.
Thanks in advance,
bjtys
I have 160,000+ rows in column C containing a URI for which I need to remove portions of the URI and\or split it into 2 columns.
Column C contains varying strings like the following (w\o quotes):
"/case/Default.aspx?pageId=1212"
"/case/Default.aspx?pageId=1085&ArtRef=US-WEL-19"
"/case/Default.aspx?PageId=1085&secureTId=b99itrG6PlV8GmmTO+cyHA=="
What I'd like to do (using VBA) is:
if cell content is like "/case/Default.aspx?pageId=1212" (without quotes) remove everything prior to and including = leaving just the 1212. In all cases the text prior to the number is "/case/Default.aspx?pageId="
if cell content is like "/case/Default.aspx?pageId=1085&ArtRef=US-WEL-19" (without quotes) split into 2 cells leaving 1085 in existing cell and copying US-WEL-19 to cell directly to the right (in this case D). The text after "ArtRef=" varies. Column C would contain 1085 and column D would contain US-WEL-19.
if cell content is like "/case/Default.aspx?PageId=1085&secureTId=b99itrG6PlV8GmmTO+cyHB==" remove everything except the 1085. There are various cells where the text after the number varies. I only care about splitting it if it contains something like "ArtRef=US-WEL-19". If it is anything else I just want to keep the number after pageID=.
Thanks in advance,
bjtys