Formula required Need to separate subject line according to criteria

chris1979

Board Regular
Joined
Feb 23, 2016
Messages
52
Hi Guys
Need your assistance in separating the words given in the subject line

For eg : the subject line as below
Returned Ticket Notification INC000000515843 Returned CI: SAP: Transport Equip Missing Information

I want to separate word which comes after Returned CI till ":" or "-". In this this case ....I want to get SAP till ":" or "-"

Also I want a formula to separate the word after SAP with either ":" or "-" or " " to capture the word or words after : or - or blank

So the cell should contain - "SAP" in one and another it should be "Transport Equip Missing Information"

Regards
Chris T
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
So are you saying CI: SAP: could also be CI, SAP, or CI-SAP- or a combination of ???
 
Upvote 0
HI - this has worked with the following
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(A4,":",REPT(" ",300)),"-",REPT(" ",300)),300,300))​
<fieldset class="postcontent" style="margin: 5px 0px; padding: 5px 10px; border-width: 0px; border-style: initial; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-radius: 5px;"></fieldset>
 
Upvote 0
This should help get you the text between the first and second colons ":"

=MID(A1,FIND(":",A1)+1,FIND(":",A1,FIND(":",A1)+1)-FIND(":",A1)-1)
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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