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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak 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,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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