View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default How do I add sequential numbers to existing data in excel?

On Fri, 6 Mar 2009 11:44:01 -0800, slinky
wrote:

I need to sequentially number existing data.
For example, the existing data is:

(A1) 2x4-c_
(A2) 2x4-b_
(A3) 3x5-c_
(A4) 3x5-b_

The desired end result is:

(A1) 2x4-c_00001
(A2) 2x4-b_00002
(A3) 3x5-c_00003
(A4) 3x5-b_00004

I need a formula/macro to append the sequential numbers to lists of data
that are 200-1000 rows long. Any ideas?


I'm assuming that (A1) is a cell reference. If not, you can alter my
recommendation accordingly.


B1: =A1&TEXT(ROWS($1:1),"00000")

Fill down 200-1000 rows as appropriate.

Then
Select B1:Bn
Edit/Copy
Edit/Paste Special/Values

You can now delete column A.
--ron