Jul 31 2020 03:36 AM
I have a copy and paste multi-line data from a web page which has all gone into column A. This isn't a text to column use case but one where I want to place data from column A into relevant headed columns
I have a sample if that helps. The major headings are:
COMPANY SECTOR SALES PHONE CITY WEBSITE CONTACT SIC CODE
Jul 31 2020 04:13 AM
Jul 31 2020 07:56 AM
Once without a VBA
If you liked my solution, please mark it as the correct answer ... if possible with a like so that everyone else can be informed. If you didn't like my answer, please give me a quick feedback.
thank you
Nikolino
I know I don't know anything (Socrates)
Jul 31 2020 07:02 PM
@Melise1 , I took a shot at this using Power Query. It's now perfect since the data in the column A is not consistent. There is no pattern that holds for all items past the Sector. Take a look at the solution and let me know if maybe there's a way to describe the input data pattern that can be used to automate the task.
Jul 31 2020 11:38 PM
Foiled! I'm using Chrome, BTW. Any way around this? Thanks....
Also, I'm wanting to move to columns as labeled in this snip:
Thanks! Melise
Jul 31 2020 11:42 PM
@NikolinoDE Hi Nikolino....not quite what was looking for....more like this:
take the lines of info under each company name and moving them to the same line as the company name but in their own column. make sense? Thanks! Melise
Jul 31 2020 11:46 PM
@TheAntony Wow! That's it....can you do this for the attached?
Aug 01 2020 04:03 AM
@Melise1 , the tricky part is not every item has the same 10 parts. For example, "Little Wickets" does not have the "Sales" part and this makes it difficult to automate.
Little Wickets (East Midlands) Ltd |
Amusement And Recreation Services, Sports |
441159248476 |
Nottingham, Nottinghamshire |
littlewickets.com |
1 |
79 |
CRM |
You mentioned that you copied and pasted from a website. Does the website have the data formatted in a way that includes all the parts? Perhaps the manual copy/paste messed things up. Can you check to see if you can get a more consistent data set?
Aug 01 2020 04:15 AM
If you find this helpful, please mark it as Like (click thumbs up) and as "Best Answer", it will be beneficial to more Community members reading here.
Nikolino
I know I don't know anything (Socrates)
Aug 02 2020 11:23 PM
@TheAntony Hi thanks for your help. Thing is, some fields are empty - rather than inserting a null character, the next line is always a field containing data. This is the issue. I did a bit of clean up but the set goes off register because of this. Thanks anyway!
Aug 02 2020 11:25 PM
@NikolinoDE Thanks...I think the translation from German to English did not make complete sense. Thanks for your help anyway! M
Aug 03 2020 04:44 AM
SolutionAug 03 2020 05:19 AM
@NikolinoDE Thank you...
Aug 03 2020 05:32 AM
Aug 03 2020 04:44 AM
Solution