Sort 4 numbers in increasing & decreasing order

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I have a contiguous row of 4 cells D10:G10 which generates +ve numerical values OR 0 (but not null or spaces/(s)).
I want to arrange them in:
  • ‘Increasing order’ in 4 contiguous cells M10:P10 (lowest in M10 & highest in P10)
  • ‘Decreasing order’ in 4 contiguous cells R10:U10 (highest in R10 & lowest in U10)
How to accomplish? Thanks in advance
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about for M10 dragged across
Excel Formula:
=SMALL($D$10:$G$10,COLUMNS($M10:M10))
and for R10 change small to large
 
Upvote 0
Solution
In M10:
Excel Formula:
=SMALL($D$10:$G$10,COLUMN()-12)
Fill right to P10

In R10:
Excel Formula:
=LARGE($D$10:$G$10,COLUMN()-17)
Fill right to U10
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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