?
Solved

increment value by 1 for each row

Posted on 2013-01-21
6
Medium Priority
?
420 Views
Last Modified: 2013-01-23
How can I increment a cell value by 1 in each new row?

for example, let's say I have the value DE01 in cell A1.  I want to copy that down 500,000 rows and have it increment by 1 on each new row, so cell A2 would be DE02, A3 would be DE03, etc...

How can I do this?

Thanks.
0
Comment
Question by:-Dman100-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 12

Expert Comment

by:Tony303
ID: 38803958
forget my last post, letters aren't playing ball, like numbers do.
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 38803974
=LEFT(A1,3)&SUBSTITUTE(A1,LEFT(A1,3),"")+1
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 38803985
Another method is to enter this in A1 and copy down

="DE0"&ROW()

You can also fill the numbers 1, 2, 3, ....
and then custom format them with the string

"DE0"general
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 38803997
To just display the "DE", then enter 1 in A1, =A1+1 in A2, and copy that formula down to A500000.  Then apply a custom number format of"

"DE"00

To actually make the DE part of the value, enter this in A1, and copy down to A500000...

=TEXT(ROW(),"""DE""00")
0
 
LVL 12

Expert Comment

by:Tony303
ID: 38804020
I tried this in Cell A2.

=CONCATENATE("DE",RIGHT(A1,LEN(A1)-2)+1)

Then filled down.
If you don't care about the "leading zero" then this is good enough.
0
 
LVL 1

Expert Comment

by:jwlemmon
ID: 38805093
All the above will work and you just need to adjust if you need it to be "DE0"number or "DE"number
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question