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

#### Chris The Rock

##### Active Member
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

Aladin and SUMPRODUCT to the rescue.

Thanks!

Replies
4
Views
239
Replies
0
Views
468
Replies
3
Views
1K
Replies
10
Views
773
L
Replies
11
Views
891
Legacy 143009
L

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.

### Which adblocker are you using?

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

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