Sort 4 numbers in increasing & decreasing order

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,215
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,215,584
Messages
6,125,670
Members
449,248
Latest member
wayneho98

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