How to show the 3 lowest values of a range, when some of those values might be the same?

helpneeded2

Board Regular
Joined
Jun 25, 2021
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I am using a formula with SMALL to find the 3 lowest values in a row, and to return the corresponding row header. The problem I have run into is if 1 or more values are tied in that position.

Based on the code used below, if "5" is the lowest value and is in 2 columns of the row of data, then the result for Column 1 (1st lowest) and Column 2 (2nd lowest) will both show the same header, as it is only referencing the first instance of "5".

Is there a better/different way to do this with Excel?

Column 1:
Excel Formula:
=INDEX($BU$1:$CV$1,MATCH(SMALL(BU2493:CV2493,1),BU2493:CV2493,0))

Column 2:
Excel Formula:
=INDEX($BU$1:$CV$1,MATCH(SMALL(BU2493:CV2493,2),BU2493:CV2493,0))

Column 3:
Excel Formula:
=INDEX($BU$1:$CV$1,MATCH(SMALL(BU2493:CV2493,3),BU2493:CV2493,0))
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about
Excel Formula:
=INDEX(SORTBY($BU$1:$CV$1,BU2493:CV2493),1,{1,2,3})
put this in one cell only & it will across.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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