next smallest non unique

abanky

Board Regular
Joined
Apr 23, 2002
Messages
144
Office Version
  1. 2019
Platform
  1. Windows
I have a calculation that assigns each row a number like this

Column B
B4 1
B5 8
B6 9
B7 1
B8 2
B9 2
B10 3
B11 3
B12 4

I'm looking for my row 3 to look like this
c3 1 d3 2 e3 3 f3 4 g3 8 h3 9 i3 9 j3 9 k3 9

I can't seem to get the small function to put them in the order i want

Thanks, Andrew
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hello Andrew,

Try putting this formula in C3

=MIN(B4:B12)

and then in D3

=MIN(IF($B4:$B12>C3,$B4:$B12),MAX($B4:B$12))

confirmed with CTRL+SHIFT+ENTER and copied across
 
Upvote 0
it blows up for me in the first part of the calculation
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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