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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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