How do I add sequential numbers to existing data in excel?

S

slinky

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?
 
R

Ron Rosenfeld

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top