Add or incerase a letter at the end of a cell

JT3101

New Member
Joined
Dec 15, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,
Firstly I'm a complete novice when it comes to Excel so apologies if this is the most basic of the basic. I have a column of cells each containing a short piece of text (Format is A#A#####) and I would like to add an A to the end of each of these cells. However some already have a letter at the end such as an A or B. For these I would like to increase it to the next letter ie A to B, B to C and so on.
Is there any way to do this?
Thanks for any help offered.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the Board!

Assuming that all the letters at the end are upper case, and you would never need to go past "Z", try this formula for an entry in cell A1:
Excel Formula:
=IF(AND(CODE(RIGHT(A1,1))>=65,CODE(RIGHT(A1,1))<=90),LEFT(A1,LEN(A1)-1)&CHAR(CODE(RIGHT(A1,1))+1),A1&"A")
 
Upvote 0
Solution
Hi again,
I've tried that formula but I just get the following error message whenever I enter it.

1639580668287.png
 
Upvote 0
It sounds like you are putting the formula in the same cell that you are trying to call.
What cell are you putting the formula in, and what cell are you referencing with the formula?
 
Upvote 0
Reading your message must have kick started something in my brain and I figured it out. It works perfectly. Thanks for your help.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

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