showing values in increasing order

KSch

New Member
Joined
Feb 16, 2011
Messages
2
I am using
=INDEX($A$1:$R$1,MATCH(MIN(A7:R7),A7:R7,0)) to find the minumum number in the array. How do I display the value one position greater? I need to order the numbers and titles in increasing order.

also any way to ignore the 0 vakues in the cell in the MIN function?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
To get the next higher value, try this
Code:
=INDEX($A$1:$R$1,MATCH(SMALL(A7:R7,2),A7:R7,0))

Note that this deals with 0 values the same way as your original formula.
Also, watch out for unexpected results if you have two or more identical values that are both one above the minimum.
Also, you could use this formula to identify the minimum value, by replacing the 2 with a 1. This might simplify your application a little.
 
Upvote 0
This is cumbersome, but it works to ignore the min value if it is zero, and looks for the next minimum value.
If there are 2 zero values, this won't work.
There are probably better ways of doing this.
Code:
=IF(SMALL(A7:R7,1)=0,INDEX($A$1:$R$1,
MATCH(SMALL(A7:R7,2),A7:R7,0)),INDEX($A$1:$R$1,
MATCH(SMALL(A7:R7,1),A7:R7,0)))
 
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,575
Members
449,318
Latest member
Son Raphon

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