Compare a number to 3 others - give it's position relative t

Chris The Rock

Active Member
Joined
Feb 24, 2002
Messages
287
I have a number, and I'd like to compare it to 3 others. If it's Less than all 3, it would be the 4th. If it's Less than only 2 of them, it would be 3rd. If it's less than only 1 of them, it would be 2nd. Finally, if it's the largest number, it would be 1st.

Picture the number used in the comparison in A1. Picture the other 3 numbers in B1, C1, and D1. The numbers in B1, C1, and D1 are NOT sorted in any way.


Would I need an array formula for this?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
On 2002-08-28 07:57, Chris The Rock wrote:
I have a number, and I'd like to compare it to 3 others. If it's Less than all 3, it would be the 4th. If it's Less than only 2 of them, it would be 3rd. If it's less than only 1 of them, it would be 2nd. Finally, if it's the largest number, it would be 1st.

Picture the number used in the comparison in A1. Picture the other 3 numbers in B1, C1, and D1. The numbers in B1, C1, and D1 are NOT sorted in any way.


Would I need an array formula for this?

You bet...

=SUMPRODUCT((A1< B1:D1)+0)+1

operates on arrays, but normally entered.
This message was edited by Aladin Akyurek on 2002-08-28 08:06
 
Upvote 0

Forum statistics

Threads
1,221,064
Messages
6,157,718
Members
451,434
Latest member
VanDookie

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