Cleaning up data from web in a cell

Sharid

Well-known Member
Joined
Apr 22, 2007
Messages
1,064
Office Version
  1. 2016
Platform
  1. Windows
Please could someone help. I have been doing this by hand, I'm hoping a vba code can do this

I am pulling data from the web into a spreedsheet, I need a VBA code that will clean the data so it is formated better, see below

I have several columns about 20 and to the last row with data in it. Row 1 has the headings so data goes into row 2 down


From This
ABCDE









Joe Blogs
Address Line 1


Address Line 2


Address Line 3

Address Line 4

Address Line 5
Tel 0111
111 2222





London
UK

<tbody>
</tbody>


To This
A
B
C
D
E
Joe Blogs
Address Line 1
Address Line 2
Address Line 3
Address Line 4
Address Line 5
Tel 011111 222
London
UK

<tbody>
</tbody>

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top