Hello everyone,
I am trying to record a macro that will sort my data by rows and keep columns in pairs of 2.
for example,
unit1 unit2 unit3
quantity price Quantity price Quantity price
100 30 200 28 500 22
100 39 200 26 500 2
100 333 200 26 500 255
100 29 200 26 500 33
And i want to sort every row based on the price of each pair. transform it to this:
unit1 unit2 unit3
quantity price Quantity price Quantity price
500 22 200 28 100 30
500 2 200 26 100 39
200 26 500 255 100 333
200 26 100 29 500 33
my code and sample workbook are attached but here is also what i have accomplished so far.
My code works for sorting rows but it doesn't give me the pairing sorting i want.
Please Login or Register to view this content.
Thanks in advance.
Any help is more than welcome
Bookmarks