ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get sequence number in the next column? (https://www.excelbanter.com/excel-programming/443171-how-get-sequence-number-next-column.html)

geniusideas

How to get sequence number in the next column?
 
Hi,

I have series of numbers in column A and I need the sequence number in
column B exclude empty cell. Example:
Column
A B (result)
15 2
20 4
18 3

14 1
80 6
50 5

Please help how to do using vba and without any sorting?



Bob Phillips[_4_]

How to get sequence number in the next column?
 
Try

=IF(X1="","",RANK(X1,$X$1:$X$7,1))

--

HTH

Bob

"geniusideas" wrote in message
...
Hi,

I have series of numbers in column A and I need the sequence number in
column B exclude empty cell. Example:
Column
A B (result)
15 2
20 4
18 3

14 1
80 6
50 5

Please help how to do using vba and without any sorting?





geniusideas

How to get sequence number in the next column?
 
Thanks Bob,

it work but i need to changed X to A only.



All times are GMT +1. The time now is 05:41 PM.

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