How to extract values between different caracteres ?

Inacio11

New Member
Joined
Jul 3, 2018
Messages
36
Hi.
At link below I have attached a excel file where I am trying to extract the data number (day-month-year) from 3 different texts and with different lenghts, but with no sucess till now. I have included more details on excel file.
I need the formula (not VBA) !
https://www.sendspace.com/file/c6s2ji
Thanks in advance !
Inacio
 
Hi again !
Thanks for you support !

Yeah ! It works when I make the changes as you said.
The problem is I receive the "text as it is" by SMS, so it is no feasible to change manually everytime.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
So your region uses dd mmmm, yyyy format?
 
Upvote 0
Try these updated formulas and see if they work for you, it's hard for me to test 100%, as I'm in USA.


Book1
CDEFG
4daymonthyear
5SMS from: 88888 2018-07-02 10:59:27272018
6From 27300 July 02, 2018 at 0721PM272018
7From 11108 July 02, 2018 at 1017PM272018
8SMS from: 888889 2017-08-25 10:59:272582017
9From 273009 July 04, 2018 at 0721PM472018
10From 111089 January 31, 2015 at 1017PM3112015
Sheet122
Cell Formulas
RangeFormula
E5=DAY(TEXT(LEFT(SUBSTITUTE(TRIM(MID($C5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$C5&"0123456789"))+6,255))," ",REPT(" ",50),IF(ISNUMBER(FIND(",",$C5)),3,1)),50),"mmmm dd, yyyy")+0)
F5=MONTH(TEXT(LEFT(SUBSTITUTE(TRIM(MID($C5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$C5&"0123456789"))+6,255))," ",REPT(" ",50),IF(ISNUMBER(FIND(",",$C5)),3,1)),50),"mmmm dd, yyyy")+0)
G5=YEAR(TEXT(LEFT(SUBSTITUTE(TRIM(MID($C5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$C5&"0123456789"))+6,255))," ",REPT(" ",50),IF(ISNUMBER(FIND(",",$C5)),3,1)),50),"mmmm dd, yyyy")+0)
 
Upvote 0
You're welcome, does that mean it worked for you?
 
Upvote 0
Not yet exactly.....but you already gave me the "way". Now I'm working on a Excel in english, but I will test on my excel with local settings...if something goes wrong...I will ask again ! Thanks
 
Upvote 0
Ok, Good Luck, BTW, Welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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