Extract Text (Date) from cell wen specific text found in that cell

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
What I would like to do is if in a cell it finds particular text (in this case "IN CONFIGURATION", to the left (38 characters before is a date is the form of 22/10/2021). What I would like to do is if that text is found, then to extract the date.

Column QColumn R
22/10/2021 09:37:41 - Status change: Complete
21/10/2021 13:12:37 - Status change: In configuration
21/10/2021 13:11:55 - Status change: Submitted
21/10/2021
22/10/2021 09:37:41 - Status change: Complete
21/10/2021 13:11:55 - Status change: Submitted
-
23/10/2021 17:23:01 - Status change: Complete
22/10/2021 14:11:01 - Status change: In configuration
21/10/2021 13:20:58 - Status change: Submitted
22/10/2021
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Surkdidat,

Surkdidat.xlsx
QR
1Column QColumn R
222/10/2021 09:37:41 - Status change: Complete 21/10/2021 13:12:37 - Status change: In configuration 21/10/2021 13:11:55 - Status change: Submitted 21/10/202
322/10/2021 09:37:41 - Status change: Complete 21/10/2021 13:11:55 - Status change: Submitted 
423/10/2021 17:23:01 - Status change: Complete 22/10/2021 14:11:01 - Status change: In configuration 21/10/2021 13:20:58 - Status change: Submitted 22/10/202
5 
Sheet1
Cell Formulas
RangeFormula
R2:R5R2=IFERROR(MID(Q2,FIND("In configuration",Q2)-38,10),"")
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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