Sorting across columns all at once rather than 1 row at a time

excelcub26

New Member
Joined
Jul 1, 2019
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Office 365, Windows 10 Professional

I have 5 columns that have distinct numbers that are not in any kind of order. I would like to sort the columns by row by either a macro or the sort function. The original data has over 700 rows and the daily data dump will have upwards of 200 rows. I can use the sort option on the ribbon (Sort>Continue with current selection>Options>sort left to right>ok) but there are several steps and it will take forever. The second option is the sort function available in Office 365. I have tried clicking on G3, then type Sort and highlight b3:f3. This copies the 5 cells highlighted in g3:K3 but does not sort them. The sort function would be preferable since I could copy the function in all of the rows that I
need to sort, but what is the best way to sort? Thanks

1610824884829.png
 

Attachments

  • 1610824185136.png
    1610824185136.png
    14.8 KB · Views: 3
  • 1610824507705.png
    1610824507705.png
    14.5 KB · Views: 3

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=SORT(B3:F3,,,1)
 
Upvote 0
Solution
Thank you Fluff! That was what I was looking for. I tried most of the sort options except you provided. Thanks again!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,621
Messages
6,125,884
Members
449,268
Latest member
sGraham24

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