Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2021, 03:37 AM
Haha88 Haha88 is offline Extracting date, month & year from a text string without using date format Help Windows 8 Extracting date, month & year from a text string without using date format Help Office 2010 32bit
Advanced Beginner
Extracting date, month & year from a text string without using date format Help
 
Join Date: Mar 2015
Posts: 75
Haha88 is on a distinguished road
Default Extracting date, month & year from a text string without using date format Help

Dear community,



I'm looking for a formula which help extracting date, month & year only from this string "Apr 27, 2021 02:43:17 PM" without using the date format.

Please help!

Thank you,
Reply With Quote
  #2  
Old 05-27-2021, 10:40 PM
xor xor is offline Extracting date, month & year from a text string without using date format Help Windows 10 Extracting date, month & year from a text string without using date format Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

date =--MID(A1,FIND(" ",A1)+1,FIND(",",A1)-FIND(" ",A1)-1)
month =MID(A1,1,FIND(" ",A1)-1)
year =--MID(A1,FIND(",",A1)+2,4)
Reply With Quote
  #3  
Old 05-28-2021, 10:44 AM
Haha88 Haha88 is offline Extracting date, month & year from a text string without using date format Help Windows 8 Extracting date, month & year from a text string without using date format Help Office 2010 32bit
Advanced Beginner
Extracting date, month & year from a text string without using date format Help
 
Join Date: Mar 2015
Posts: 75
Haha88 is on a distinguished road
Default

Dear Xor,

Thank you so much for helping. However when I try to put it together so it can be shown as 17/04/2021, it didn't seem to work for me. Is there alternative?

Many thanks,
Reply With Quote
  #4  
Old 05-28-2021, 11:21 AM
xor xor is offline Extracting date, month & year from a text string without using date format Help Windows 10 Extracting date, month & year from a text string without using date format Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default Extracting date

See the attached
Attached Files
File Type: xlsx Extracting_Date.xlsx (10.2 KB, 5 views)
Reply With Quote
  #5  
Old 05-28-2021, 09:49 PM
xor xor is offline Extracting date, month & year from a text string without using date format Help Windows 10 Extracting date, month & year from a text string without using date format Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default Extracting date

Use this file instead of the one posted in #4.
Attached Files
File Type: xlsx Extracting_Date_2.xlsx (10.2 KB, 6 views)
Reply With Quote
  #6  
Old 08-06-2021, 01:19 PM
Dominique Gascon Dominique Gascon is offline Extracting date, month & year from a text string without using date format Help Windows 10 Extracting date, month & year from a text string without using date format Help Office 2019
Novice
 
Join Date: Jan 2021
Posts: 2
Dominique Gascon is on a distinguished road
Default

Simpler:
=YEAR(DATEVALUE(LEFT$A$1,FIND(",",$A$1)+5)))


And the same for day and Month
Attached Files
File Type: xlsx Copy of Extracting_Date_2simpler.xlsx (15.4 KB, 4 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting date, month & year from a text string without using date format Help Empty date cell shows wrong month & year Learner7 Excel 3 06-16-2019 11:09 AM
Excel day date month year Function greginky Excel 1 01-05-2016 02:19 AM
How to calculate a rolling year-to-date percentage by quarter as the year progresses sleake Excel Programming 2 04-23-2015 11:51 AM
Extracting date, month & year from a text string without using date format Help Excel 2013 – need help extracting date and time from text cell plus more. Art Mann Excel 1 07-18-2014 09:55 PM
Letter date changes when merging with Excel - not the format, the actual date! Smallweed Mail Merge 1 02-07-2014 06:00 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft