sorting data by variable number of rows and serpentining back and forth across columns

Jmking

New Member
Joined
Jul 16, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

My VBA is more than a tad rusty and I'm looking for some help. I have data files that represent 2d maps of tree locations with trees in grid pattern. The maps are of varying shapes and run to around 25000 trees each with a row column and family number as well as up to twenty more fields for various measurements. I would like to be able to sort the data file according to the following options. The first and most importantly by a variable number of rows serpentining back and forth across the columns
1594972580420.png


This is how the sort should look after the sort according to the first few lines of the data set. The overall shape changes from site to site, so the number of rows and columns will be different for each. Ideally I will also be able to choose either ascending or descending.. Any suggestions?

Thanks

Jake
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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