Formula to extend a string of type AAA001

  • Thread starter Thread starter gizmo
  • Start date Start date
G

gizmo

Hi guys,

I'm wondering if there is any formula that can replace the manual dragging
of the cell for values composed of letters and numbers. The concrete exemple
would be:

AMD001, AMD002, AMD003 etc...

THanks a lot and a happy new year!
 
Hi

Into cell in row 1 enter the formula
="AMD" & TEXT(ROW(),"000")
and copy down
 
Not sure what you're after (Edit > Fill > Series > Columns .. ??),
but you could play with this ..

Select say, A1:A20

Put in the formula bar:
="AMD"&TEXT(ROW(),"000")

Array-enter, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER

The above will fill the range with: AMD001, ... AMD020
(w/o dragging down <g>)

(but think it's easier just to put in A1: AMD001, and drag down)
 
Thanks guys for your input!
However, maybe I was not explicit enough...

The goal would be to let one cell unprotected (f. ex. B2), where somebody
will put the adequate value (one day it can be AMD005, other day it can be
AMD558), and then (in adjacent columns or rows) put in place an automatic
formula that will extend this value once and for all, so nobody will have to
drag it manually...

With sole numbers, the task would be "kinderleicht" (B2 for input, C2 with
formula =B2+1, then D2 with formula C2+1 etc...). However, once we have a
mix of letters and numbers, the whole exercice becomes more complicated (at
least for me:-)).

If you could help me on this also...
 
Let's say we earmark:

B1: AMD (for input of letters)
B2: 5 (for input of first number)

Put in B3: =$B$1&TEXT($B$2+ROWS($A$1:A1)-1,"000")
Copy B3 down by as many rows as desired, say to B100

B3:B100 will then return the sequential alphanumerics:
AMD005, ... AMD102
 
Hi

Are last 3 characters always numbers? When yes, then with start value
entered into B2
B3=LEFT($B2,LEN($B2)-3) & TEXT(VALUE(RIGHT($B2,3))+1,"000")
and copy down
 
Thanks once again guys, and especially for your last suggestion Arvi!

It looks quite sophisticated (compared to simple dragging down), but works
perfectly!!
My best wishes,

Gizmo
 

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

Back
Top