Delete specific characters from a string in a cell

mcgew

Board Regular
Joined
Sep 4, 2002
Messages
75
Does anyone know how to remove certain characters from a string in a cell?
I have a list like this:
N108KC/575
N108KC/59838/1
N108KC/59838/2
N108KCA/8063/170
N108KCM/950


And I want to remove the first 5 characters from those to look like this:
C/575
C/59838/1
C/59838/2
CA/8063/170
CM/950

I can't use Right() formula as all the strings are different lengths - are there any other formulas or a macro I could use?
Thanks
:biggrin:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You could use right(A1,len(A1)-5)

Or if the stuff to remove is constant, use find and replace N108K with nothing.

Richard
 
Upvote 0
assuming N108KC/575 is in cell A1 this would work


=RIGHT(A1,LEN(A1)-5)

I knew I wouldn't be fast enough. Oh now that is funny
 
Upvote 0

Forum statistics

Threads
1,206,969
Messages
6,075,919
Members
446,170
Latest member
zzzz02

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