Want to extra text before and after specific punctuation marks

MissQuestion

New Member
Joined
Mar 21, 2023
Messages
1
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
Hello,
I am trying to create a new table automatically from a lengthy table I export from my systems.
The table is like this

Relation to - column C
Problem - Column D
Plan to solve it and updates - Column E

Column E is the one I am trying to use formulas to decrease but I cannot get anywhere. It is like this
"Jenny Marks, Manager, to prepare slides. Update on 20Jan2023: Jenny Prepared the slides but missed the final page.
20Jan23 Jenny Marks, Manager, to prepare final page.
Update on 10Mar2023: Jenny finalised slides. James Connor, Director, to approve slides."
The above always has the same things between changes I.e. Name surname, role, "to" task.

I want to extract to Column E to separate sections:
The latest planned action should go to Column O.
The relevant person and their role. for the last action should go to Column Q.

I have given an example below of how it should look like based on my above example:
Column O (remove the "to " from it and capitalise first letter of word afterwards)
Approve slides.
Column Q: James Connor, Director

I have managed to get my formulas to partially work but sometimes they don't seem to do so... 😔

Happy to provide more examples! Thank you ! 😊
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi,
With your string located in cell A1, you can test :
Excel Formula:
=RIGHT(SUBSTITUTE(A1,RIGHT(A1,LEN(A1)-FIND("to ",A1)+3),""),LEN(SUBSTITUTE(A1,RIGHT(A1,LEN(A1)-FIND("to ",A1)+3),""))-(FIND(".",SUBSTITUTE(A1,RIGHT(A1,LEN(A1)-FIND("to ",A1)+3),""))+1))
and
Excel Formula:
=PROPER(RIGHT(A1,LEN(A1)-(FIND("to ",A1)+2)))
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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