Sorting Based On Dynamic Order List

moony

New Member
Joined
Jul 22, 2019
Messages
20
Hello everyone!

I have scraped a bunch of data from Zillow and am trying to sort it all out.
I currently have the following columns:
Street AddressCityStateZipTypeSale DateSale Price$ PSFBedsBathsSquare FeetYear BuiltURL

What I'm trying to do is sort by columns. Since the output sheet dynamically pulls from the "source" sheet compiled from scraping, I can only sort on the "source" and have it pulled in to the output sheet correctly sorted.
I created an area called "Sorting Order" and have a numbered drop-down list of the columns I'd like to be able to sort through (8 options): Type, Sale Date, Sale Price, $ PSF, Beds, Baths, Square Feet, Year Built.

That way the sorting order is dictated by the order selected (cells J3:J8 on output sheet) with J3 = 1st sort order, J4 = 2nd sort order, etc. (6 sorting orders currently for formatting reasons, although not sure if we'd ever use more than 3 at a time)

Is there a way to get it to sort the data on the "source" sheet by applying the sorting order manually/dynamically by selecting the order from a drop-down list?
Sorting Order
1.​
Type
2.​
Sale Date
3.​
$ PSF
4.​
Square Feet
5.​
Year Built
6.​
Beds

Hope I explained it well/clearly enough!

Thanks

Edit:

This is what the "source" sheet's column headers look like:

web-scraper-orderweb-scraper-start-urlListingsListings-hrefSale DateSale PriceBedsBathsSquare FeetTypeYear Built
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Here is a link to a copy of the file:

In case you wanted to try and solve it directly on it, or to get a better picture of what's going on.

Thanks!!
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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