hi,
I need a macro that sorts the numbers from smallest to largest every 24 rows.
sorting numbers.xlsx
hi,
I need a macro that sorts the numbers from smallest to largest every 24 rows.
sorting numbers.xlsx
This will break your data into 24 row blocks and sort each block
![]()
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
non VBA solution
d1 =and drag down![]()
Please Login or Register to view this content.
I copied the data in column A to column C => paste special => values since you added them with the formula aslect.
After that just sort on column D and after that sort on column C.
See the attached file.
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
change 1 (= column A) in 8 (column H).
Here's another:
![]()
Please Login or Register to view this content.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Change this line
but that will only sort column H, the other columns will be unchanged.![]()
Please Login or Register to view this content.
If you want all the columns to be sorted along with H.
![]()
Please Login or Register to view this content.
You used the formula aselect.
That is the reason differant values been taken.
So i copied the data and paste it as special => values.
Then I used the formula I offered.
Try it and it will work.
My solution and Mike's are nearly identical; did you try either one?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks