Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default 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?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default 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?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default How to get sequence number in the next column?

Thanks Bob,

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a number sequence based on criteria in another column DanaK Excel Worksheet Functions 3 September 26th 09 07:13 AM
Restructuring column sequence to rows, based on a unique column. JokerFrowns Excel Programming 0 June 1st 07 03:23 PM
How can I match a random number with closest number from sequence? Matt Excel Worksheet Functions 4 August 3rd 06 01:22 AM
How do I: Extract column headers based on lowest number in sequence WolfJack Excel Worksheet Functions 2 June 21st 06 09:24 PM
Repeating number sequence in a column Nexan Excel Discussion (Misc queries) 3 March 31st 05 07:55 PM


All times are GMT +1. The time now is 02:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"