ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Values (https://www.excelbanter.com/excel-discussion-misc-queries/12851-values.html)

PBRMY

Values
 
From highest value in A1 to A5, I want a 10 then 8 etc inserted automatically
in B1 to B5

Bernd Plumhoff

=INDEX({10,8,6,4,2},RANK(A2,$A$1:$A$5,FALSE)+COUNT IF($A$1:A2,A2)-1)

if you want different numbers for equal values in A1:A5, otherwise:

=INDEX({10,8,6,4,2},RANK(A2,$A$1:$A$5,FALSE))

HTH,
Bernd




All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com