Hi,
I had a similar (I think) problem recently -
Someone had extracted a list of Usernames from an application
The result was a single column of strings, with each cell having multiple Usernames.
Each Username was prefixed with "CN=" and suffixed with a comma
Unfortunately the strings were of varying length and the number of usernames in each string also varied.
The strings also contained other information.
Converting from Text to Columns didn't work as some of strings had enough commas to exceed the number of columns available (xl2003)
So..
The below looks within a string for instances of the first criteria ("CN=") then look for the first comma after finding "CN=", trims the criteria (both fore and aft) and pastes the value the string between the criteria in a cell 10 rows below the block of strings.
Then continues to scan the string, etc, etc until is gets to the end of the string then drops down the next row and starts again.
Hope this helps - I couldn't find a formulaic solution to this.
Bookmarks