So I have a column of long text strings that essentially are made up of '&'s followed by an alphabetic code, and then an '=', and finally, a bunch of numbers (varying lengths).
here is a sample:
...&abc=123435&defg=54321&hijklmno=14&...
I want to extract from the sample above the following:
defg=54321
I know Im always extracting defg=, but I do not know where it is in the cell, and I do not know how many numerals come after the = and before the following &.
Any ideas??
Is there always an & after the numbers following defg?
Alan
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
hi
Try this code and check whether it works.
Put the Code in B1 and assuming that Column A has your data
Code: =MID(A1,SEARCH("defg=",A1,1),10)
I have attached a solution. I used helper columns so that you could see how each piece comes together. You can combine the columns to make one long formula if you like.
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
Sorry, YES there is always an '&' after the numbers following defg=
I'm testing out some theories now! Thanks for the help!
This worked perfectly! Thank you very much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks