Fixing the format of Data pasted from a website

bswdimples

New Member
Joined
Feb 16, 2016
Messages
5
Hello All,


I work for a Self-Storage Company and have to constantly make Rate Surveys of our competitors. I use the below website listed below to get rates.

Website: https://www.sparefoot.com/Brooklyn-NY-self-storage/StorageMart-Kent-Ave-Wallabout-70426

When I copy and paste the rates from the website the format is very wrong. It looks something like the following:


5' x 5' Unit
climate controlled,
premium unit,
interior,
8ft ceiling,
floor 1
First Month FREE


5' x 6' Unit
climate controlled,
interior,
8ft ceiling,
floor 1
First Month FREE


Is there a way using vba's or formulas to put the information in a more workable format. Ideally, I would like all of the stores information on one row with the columns as following:
Column 1: Unit sizeColumn 2: AmenitiesColumn 3: Price Column 4: Promotion

Thanks for any guidance!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I assume all this data is in column "A"
Are there any empty cells like in your example between units?
 
Upvote 0
I see how you say the data looks now. Show us an example of how you want the data to look like after our script runs.

In your sample I see no "price"

What separate's the fields?
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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