Date Formula From Text in Alternate Cell

ladylissa21

New Member
Joined
Feb 23, 2015
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hello smart people! :)

I'm using a formula currently to extract the date out of a text comment, and it's been working well until we hit the double digit months. It enters the single digit months perfectly, as (for example) 09/13/2018. But in the double digit months, it's giving me (for example, in October) 0/23/2018. It's not recognizing that first digit.

So currently L2 has a text comment that reads something like: SERVICING NOTE REVIEW COMPLETED ON 10/24/2018.

And the existing formula in M2 is: =MID(L2,MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},L2,1),LEN(L2)+1)),LOOKUP(1,0/MID(L2,ROW(INDIRECT("1:"&LEN(L2))),1),ROW(INDIRECT("1:"&LEN(L2)))) + 1 - MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},L2,1),LEN(L2)+1)))

I found that formula online and have no idea how to alter it to fix the issue. I want it, ideally, to populate the date as given in the note, and ignore any empty fields in L2. Thank you!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Okay, new problem. Some users are putting a period at the end of the sentence. For example, the text in the cell might say, "Servicing Note Review 08/22/2018." The period at the end seems to be stumping the formula. I can do a find/replace if I need to, but first I want to see if there's any adjustment I can make to the formula to have it look past that automatically?
 
Upvote 0
Formula adjusted for your additional requirement:


Book1
AB
1LATE CHARGE NOTE REVIEW COMPLETED ON 08/28/2018___________________8/28/2018
2LATE CHARGE NOTE REVIEW COMPLETED ON 09/17/2018___________________9/17/2018
3LATE CHARGE NOTE REVIEW COMPLETED ON 10/16/2018___________________10/16/2018
4_LATE CHARGE NOTE REVIEW COMPLETED ON 09/12/20189/12/2018
5_LATE CHARGE NOTE REVIEW COMPLETED ON 10/29/201810/29/2018
6SERVICING NOTE REVIEW COMPLETED ON 10/24/201810/24/2018
7SERVICING NOTE REVIEW HAS NOT BEEN COMPLETED
8SERVICING NOTE REVIEW COMPLETED ON 09/13/20189/13/2018
9SERVCING NOTE REVIEW 5/25/185/25/2018
10SERVICING NOTE REVIEW 11/7/201811/7/2018
11SERVICING NOTE REVIEW 1/1/191/1/2019
12SERVICING NOTE REVIEW ON 09/13/2018 COMPLETED9/13/2018
13LATE CHARGE NOTE REVIEW COMPLETED ON 10/16/2018.___________________10/16/2018
14SERVICING NOTE REVIEW 11/7/2018.11/7/2018
Sheet350
Cell Formulas
RangeFormula
B1=IFERROR(SUBSTITUTE(SUBSTITUTE(LEFT(SUBSTITUTE(MID(A1,MIN(FIND({0,1,2,3,4}+{0;5},A1&1/17)),99)," ",REPT(" ",99)),99),"_",""),".","")+0,"")
 
Upvote 0
You've come to my rescue once again, thank you! Here's hoping that's the last variation that I need to account for. I appreciate all of your help so much!
 
Upvote 0
You're welcome, feel free to post back if things change.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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