ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I add sequential numbers to existing data in excel? (https://www.excelbanter.com/excel-worksheet-functions/223400-how-do-i-add-sequential-numbers-existing-data-excel.html)

Slinky

How do I add sequential numbers to existing data in excel?
 
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?

Ron Rosenfeld

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

Slinky

How do I add sequential numbers to existing data in excel?
 
Perfect. That's exactly what I was looking for - thank you!

"Ron Rosenfeld" wrote:

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


Ron Rosenfeld

How do I add sequential numbers to existing data in excel?
 
On Fri, 6 Mar 2009 12:56:01 -0800, slinky
wrote:

Perfect. That's exactly what I was looking for - thank you!


Glad to help. Thanks for the feedback.
--ron


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

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