add a letter to the end of a number

b19upj

New Member
Joined
Oct 3, 2014
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have to insert some rows to my existing spreadsheet.
The rows are currently numbered in column A from 1 until 3000.
I am adding rows to add a level of detail to some of the items numbered above. Because of this, I want the rows I add to use the number from the row above but add 'a' to the first, 'b' to the second, 'c' to the third, and so on.
Is there a formula i can use in column A to use the number and add a letter (going up from a-z) automatically instead of me manually dragging the column A number and writing a,b,c,d, etc?

TIA
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Code:
=IF(ISNUMBER(VALUE(LEFT(INDIRECT("A" &ROW()-1),1))), "a" & INDIRECT("A" &ROW()-1), CHAR(CODE(LEFT(INDIRECT("A" &ROW()-1),1))+1) & RIGHT(INDIRECT("A" &ROW()-1), LEN(INDIRECT("A" &ROW()-1))-1))


Not the tidiest but it will work.
 
Upvote 0
Hi,

Try the below, too

Place it in cell A1; then copy it down to A3000

Code:
=SUBSTITUTE(ADDRESS(1,ROW(),4),"1","") & ROW()
 
Upvote 0
Hi.

=CEILING(ROWS($1:1)/26,1)&CHAR(97+MOD(ROWS($1:1)-1,26))

Copy down as required.

Regards
 
Upvote 0

Forum statistics

Threads
1,217,048
Messages
6,134,287
Members
449,863
Latest member
Snowmanx812

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top