Solved

increment value by 1 for each row

Posted on 2013-01-21
6
377 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-
6 Comments
 
LVL 12

Expert Comment

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

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
Comment Utility
=LEFT(A1,3)&SUBSTITUTE(A1,LEFT(A1,3),"")+1
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now