Remove all characters before & including a dash

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
Hi,


My cell A4 contains the text 103-6807-2016-11-25 -CL- Joesep Byrne Senior -ST- Grace Jones.html


I want to remove everything before & including the first -


Also, other cells will have more than 3 characters before the 1st - taht I need to remove.


Been trying this but can't get it to work - =RIGHT(A4,LEN(A4-FIND("-",A4,1)))


Gerry
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try
Code:
=TRIM(MID(A4,SEARCH("-",A4)+1,LEN(A4)))
 
Upvote 0
You're close with that formula. Try:

Excel 2013/2016
A
1103-6807-2014-11-25 - CL- Josep Byrne Senir -ST- Grace Jones.html
26807-2014-11-25 - CL- Josep Byrne Senir -ST- Grace Jones.html

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
A2=RIGHT(A1,LEN(A1)-SEARCH("-",A1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

That works perfectly. Thank a lot.
 
Upvote 0

Forum statistics

Threads
1,214,413
Messages
6,119,372
Members
448,888
Latest member
Arle8907

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