Add character to the end of a string

tad_excel_74

New Member
Joined
Jul 17, 2019
Messages
3
What formula do I use to add a character to the end of a cell if that character is not already there?

Example: there are multiple rows... some end in "NC" and some end in "N". I'm using the quotation marks to designate that the cells end in the letters. The quotation marks are not in the cells. The cells are of varying lengths. If a cell ends in "NC", then nothing needs to be done. If a cell ends in "N", how do you add a "C" to it to make it "NC"?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

Does this help:


Book1
AB
1abcNCabcNC
2DEFghNDEFghNC
3xyzqwertyNCxyzqwertyNC
4dfg Ndfg NC
5klrlmo NCklrlmo NC
6abc def ghi jkl Nabc def ghi jkl NC
Sheet691
Cell Formulas
RangeFormula
B1=SUBSTITUTE(A1,IF(RIGHT(A1)="N","N",""),"NC")
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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