ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Serial number of a list (https://www.excelbanter.com/excel-discussion-misc-queries/218746-serial-number-list.html)

geotso

Serial number of a list
 
In a list like this:

100
200
150
120
250

how to get the serial numbers in the next cells? Like this:

100 1
200 4
150 3
120 2
250 5

thanks in advance

--
geotso
---- ---- --- -- - -
Please, remove hyphens to contact me
---- ---- --- -- - -

Bernard Liengme

Serial number of a list
 

In the cell next to 100 (which I will assume is in A1) enter =RANK(A1,A:A)
or =RANK(A1,$A$1:$A$100)
Copy down the column by double clicking B1's fill handle
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"geotso" wrote in message
...
In a list like this:

100
200
150
120
250

how to get the serial numbers in the next cells? Like this:

100 1
200 4
150 3
120 2
250 5

thanks in advance

--
geotso
---- ---- --- -- - -
Please, remove hyphens to contact me
---- ---- --- -- - -




WLMPilot

Serial number of a list
 
What determines the serial number in the first place? Is the serial number
based on the sort order of the list?

Les

"geotso" wrote:

In a list like this:

100
200
150
120
250

how to get the serial numbers in the next cells? Like this:

100 1
200 4
150 3
120 2
250 5

thanks in advance

--
geotso
---- ---- --- -- - -
Please, remove hyphens to contact me
---- ---- --- -- - -


geotso

Serial number of a list
 
well, with both I get a descend order:

LIST I GET I WISH
100 5 1
200 2 4
150 3 3
120 4 2
250 1 5

Could you please turn it up side down? :-)
Thanks

"Bernard Liengme" wrote in message
...

In the cell next to 100 (which I will assume is in A1) enter =RANK(A1,A:A)
or =RANK(A1,$A$1:$A$100)
Copy down the column by double clicking B1's fill handle
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"geotso" wrote in message
...
In a list like this:

100
200
150
120
250

how to get the serial numbers in the next cells? Like this:

100 1
200 4
150 3
120 2
250 5

thanks in advance

--
geotso
---- ---- --- -- - -
Please, remove hyphens to contact me
---- ---- --- -- - -







geotso

Serial number of a list
 
Ooops!

Never mind! I found it:
=RANK(A1,A:A,1)

Thanks again...


All times are GMT +1. The time now is 08:36 PM.

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