Convert text date to date in excel for Mac

WESTERNWALL

Board Regular
Joined
Oct 8, 2002
Messages
204
Office Version
  1. 365
Platform
  1. MacOS
Hi
I've got a text date that I want to convert to a numerical date in Excel for Mac. I have tried some of your formulas and they don't seem to work. I can't find VBA to use. I do not have the little green triangle in the corner. Can anyone help please?
Tx
 
Hi Etaf
You didn't think you would be hearing from me again. I received another file with date format issues. I tried your solution and it does not work. I tried delving into the formula and make changes, but that did not work either. Could you help me on this one, please? The date format should be dd/mm/yyyy. Many thanks.
MrExcel Example Date format Issue #2.xlsx
AB
110/15/2023 04:42:26 #VALUE!
210/15/202345214.19613
310/15/2023 04:50:55
410/15/2023 05:01:22
510/15/2023 05:04:12
610/15/2023 05:06:12
710/15/2023 05:07:33
810/15/2023 05:18:33
910/15/2023 05:22:56
1010/15/2023 05:28:27
1110/15/2023 05:32:05
1210/15/2023 05:32:27
1310/15/2023 05:38:18
Sheet1
Cell Formulas
RangeFormula
B1B1=VALUE(A1)
B2B2=DATEVALUE(MID(A1,4,2)&"/"&LEFT(A1,2)&"/"&MID(A1,7,4))+TIMEVALUE(RIGHT(A1,8))
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi Etaf
You didn't think you would be hearing from me again. I received another file with date format issues. I tried your solution and it does not work. I tried delving into the formula and make changes, but that did not work either. Could you help me on this one, please? The date format should be dd/mm/yyyy. Many thanks.
MrExcel Example Date format Issue #2.xlsx
AB
110/15/2023 04:42:26 #VALUE!
210/15/202345214.19613
310/15/2023 04:50:55
410/15/2023 05:01:22
510/15/2023 05:04:12
610/15/2023 05:06:12
710/15/2023 05:07:33
810/15/2023 05:18:33
910/15/2023 05:22:56
1010/15/2023 05:28:27
1110/15/2023 05:32:05
1210/15/2023 05:32:27
1310/15/2023 05:38:18
Sheet1
Cell Formulas
RangeFormula
B1B1=VALUE(A1)
B2B2=DATEVALUE(MID(A1,4,2)&"/"&LEFT(A1,2)&"/"&MID(A1,7,4))+TIMEVALUE(RIGHT(A1,8))
 
Upvote 0
Apologies, Etaf. That was the incorrect file I sent. Please disregard it. Thanks
 
Upvote 0
Hi Etaf
You didn't think you would be hearing from me again. I received another file with date format issues. I tried your solution and it does not work. I tried delving into the formula and make changes, but that did not work either. Could you help me on this one, please? The date format should be dd/mm/yyyy. Many thanks.

Mr Excel DATEVALUE Formula Issue.xlsx
AB
11/13/2024#VALUE!
21/13/2024#VALUE!
31/13/2024
41/13/2024
51/14/2024
61/14/2024
71/15/2024
81/15/2024
91/16/2024
101/17/2024
111/17/2024
Sheet1
Cell Formulas
RangeFormula
B1B1=VALUE(A1)
B2B2=DATEVALUE(MID(A2,4,2)&"/"&LEFT(A2,2)&"/"&MID(A2,7,4))
 
Upvote 0
You seem to be overcomplicating things by getting hung up on the fact that you have partially converted from the original format of 2024-01-13T00:22:30Z.
The original format is a much simpler conversion than the one you are dealing with now.
Additional issues:
• If you have Excel 2021 or MS 365 there are other options available to you, so please update your account profile to show which version you are using
• Typically Excel will be treating any dates with days <= 12 differently and will have converted them to a date data type but with month and year the wrong way around but you have not included any of those in your sample data.

20240513 VBA Convert UTC Date yyyymmddThhmmssZ WESTERNWALL.xlsm
ABCHIJ
11/13/202413/01/20242024-01-13T00:22:30Z13/01/2024
21/13/202413/01/20242024-01-13T00:29:45Z13/01/2024
31/13/202413/01/20242024-01-13T00:46:03Z13/01/2024
41/13/202413/01/20242024-01-13T01:14:41Z13/01/2024
51/14/202414/01/20242024-01-14T01:33:40Z14/01/2024
61/14/202414/01/20242024-01-14T01:37:48Z14/01/2024
71/15/202415/01/20242024-01-15T01:37:54Z15/01/2024
81/15/202415/01/20242024-01-15T02:11:08Z15/01/2024
91/16/202416/01/20242024-01-16T02:40:29Z16/01/2024
101/17/202417/01/20242024-01-17T02:43:21Z17/01/2024
111/17/202417/01/20242024-01-17T02:44:52Z17/01/2024
121/10/202410/01/20242024-01-10T02:44:52Z10/01/2024
13
14Partially Converted dataConvert Column AOriginal DataConvert Column I
Latest
Cell Formulas
RangeFormula
B1:B12B1=IF(ISNUMBER(A1), DATEVALUE(TEXT(A1,"mm/dd/yyyy")), DATE(RIGHT(A1,4),LEFT(A1,FIND("/",A1)-1),SUBSTITUTE(MID(A1,3,3),"/","")))
J1:J12J1=DATEVALUE(LEFT(I1,10))
 
Upvote 0

Forum statistics

Threads
1,224,802
Messages
6,181,048
Members
453,014
Latest member
Chris258

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