How To Extract Text Before Or After Dash From Cells?

fidelito101

New Member
Joined
Sep 14, 2018
Messages
13
Hello everybody!
I need some help from you, I have a list of (Song - Artist - Album) in A Column and I would like to put the artist in Column B, the song title in column C and the album title in D.

Thanks in advance

ABCD
The Coasters - Charlie Brown - Poison IvyThe CoastersCharlie BrownPoison Ivy
The Impalas - Sorry (I Ran All the Way Home) - Brand New Cadillac: Rock & RollThe ImpalasSorry (I Ran All the Way Home)Brand New Cadillac: Rock & Roll
 
Or, alternately, if you want a formula, put this in cell B1 (where I have assumed your first data value is in cell A1) and copy it across to cell D1, then copy cells B1, C1, D1 down to the bottom of your data...

=TRIM(MID(SUBSTITUTE("-"&$A1,"-",REPT(" ",300)),COLUMNS($B:B)*300,300))

Thank you very much for your help.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,214,376
Messages
6,119,179
Members
448,871
Latest member
hengshankouniuniu

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