Hello there!
I'm working on the beginning steps of a macro for a co-worker but first need to get the data in a format that I can work with. When the data comes into Excel (I'm using Excel 2010) it's all in 1 column instead of spread out over several columns like it should be. There are no tabs or commas used as delimiters; it's all separated by random numbers of spaces! So, I can't use delimiters in a Text-To-Columns. Of course each row of data might need to be spread across 2, 3, 4 or more columns, so I can't use fixed width, either.
So, my next thought was to replace any instance of more than one space with a tab (or comma), and THEN do Text-To-Columns. But I can't figure out how to do that. I've been googling around and found something that looked promising, but it was from 9 years ago and it doesn't seem to want to work for me.
What it says to do is: in "Find what", enter a space followed by {2,}, then in "Replace with" put in ^t. Here's the problem - next it wants me to check "Use wildcards" but I don't seem to have that option anywhere! (That's probably one more useful thing they eliminated when they "upgraded" Excel. Wish they'd leave stuff alone!)
I suppose it's possible to create a macro without having to parse the data out across columns, but I can't imagine how that would go! I'll attempt to attach a workbook showing the raw data in its original form and how we want it to ultimately turn out.
(If someone can just help me get the data parsed out correctly I THINK I can work through the rest of it over time. Unless there's some way to achieve the final desired result that skips the Text-To-Columns business)
Thanks!
Jenny
Bookmarks