Insert Alphabet based on another cell... Harder than it sounds...

Richard_mcr

New Member
Joined
Oct 19, 2023
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I'm building a calculation worksheet which involves inserting copied rows. I have what I imagine is an easy problem that I'm making difficult!

Senario:

Rows 1 to 5 are related to one set of data with a sequential letter reference. Each time I insert a new set, I copy and inset a defined additional 5 rows and the next alphabet letter; therefore I result in simple terms with:

A = Row 1 to 5
B = Row 6 to 10
C = Row 11 to 15
Etc...

At the moment, I have a validation on the letter cell and manually change the to the next letter.

Requirement:

Once the new 5 rows are inserted at the end of the data, I want to look at the cell with the letter in the previous set and select the next letter in the alphabet. The letter cell in each set is currently the second row, column B.

If anyone could point me in the right direction, I'd very much appreciate it!

1698137699666.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Something like this might work...
Book1
E
1
2A
3
4
5
6B
7
8
9
10C
11
12
13
14D
15
16
17
18E
19
20
21
22F
23
24
25
Sheet1
Cell Formulas
RangeFormula
E6,E22,E18,E14,E10E6=IF(AND(CODE(E2)+1>=65,CODE(E2)+1<=90),CHAR(CODE(E2)+1),"-")

I hope that helps,

Doug
 
Upvote 0
Hi Doug,

Sorry for the slow response!

Thanks for the code, however, I realise now that I didn't explain what I need correctly! :rolleyes:

I need to do exactly what you have done, however, I need it to be a one time event. There will be a need a times to inset a new section, for example, in between C and D, but I wouldn't want D to automatically become E.... 😬

I hope that makes sense!!

Thanks again for looking at it!
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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