Convert a Text Format cell to a Date Format Cell

binetht

New Member
Joined
Dec 22, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have 3 separate dates+times as below.

16/12/2020 15:13:4121/12/2020 17:28:5021/12/2020 17:28:55

From these 3 separate cells, I want to find the Latest and Earliest Times.

But when I checked the cell's type, it is 2. I think that means this is a Text type of cell. not a date type cell.

What should I do to find the latest and earliest?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Format the formula cells with dd/mm/yyyy hh:mm:ss

20 12 30.xlsm
ABCDE
1MinMax
216/12/2020 15:13:4121/12/2020 17:28:5021/12/2020 17:28:5516/12/2020 15:13:4121/12/2020 17:28:55
Date Time
Cell Formulas
RangeFormula
D2D2=MIN(--A2:C2)
E2E2=MAX(--A2:C2)
 
Upvote 0
Hi Peter. I want to Test your formula, But I don't know why it Show error to me.
Book1
ABCDE
1MinMax
212/30/2020 7:3012/30/2020 7:3912/30/2020 7:43#VALUE!#VALUE!
3
416/12/2020 15:13:4121/12/2020 17:28:5021/12/2020 17:28:55#VALUE!#VALUE!
5
612/30/2020 0:0012/30/2020 8:5012/30/2020 8:51#VALUE!#VALUE!
Sheet1
Cell Formulas
RangeFormula
D2,D6,D4D2=MIN(--A2:C2)
E2,E6,E4E2=MAX(--A2:C2)
 
Upvote 0
Looks like your columns A:C are not text as the original question, though that shouldn't be an issue.
Your dates are also in a m/d/y format whereas the OPs are in d/m/y format. Again I don't really think that should be an issue, but try with the dates in d/m/y format and see what happens.

What is the d/m/y setting in your Windows Regional settings?
 
Upvote 0
My System Regional setting is English(United States) also I change custom format to mm/dd/yyyy h:mm;@ ,But it doesn't work.
For d/m/y also not working.
 
Upvote 0
Then I am not sure why it is not working for you.
Hi, I changed the regional formatting like this and now its working.

1609307349298.png
 
Upvote 0
Hi, I changed the regional formatting like this and now its working.
Yes, that short date format (d/m/y) is what I meant. It matches the data in your sheet. Glad you got it working. :)
 
Upvote 0
and there is another issue,

Raw SSD 12th 12PM to 19th 12 PM.xlsx
OPSTUVWXYZAAAB
1Planned Sewing End dateActual Sewing End datePlan Finish date Node 1Plan Finish date Node 2Plan Finish date Node 3Plan Finish date Node 4Actual Finish date Node 1Actual Finish date Node 2Actual Finish date Node 3Actual Finish date Node 4Earliest Plan DateLatest End Date
206/10/2020 10:00:0008/10/2020 13:36:0012/10/2020 09:18:0012/10/2020 14:42:0014/12/2020 12:29:0607/10/2020 15:55:1609/10/2020 16:25:3012/10/2020 11:05:126-Oct-2020 10:00 AM8-Oct-2020 01:36 PM12-Oct-2020 09:18 AM12-Oct-2020 02:42 PM14-Dec-2020 12:29 PM7-Oct-2020 03:55 PM9-Oct-2020 04:25 PM12-Oct-2020 11:05 AM6-Oct-2020 10:00 AM7-Oct-2020 03:55 PM
311-03-20 15:3016/12/2020 15:32:5111-Mar-2020 03:30 PM#VALUE!#VALUE!#VALUE!16-Dec-2020 03:32 PM#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!
Sheet1
Cell Formulas
RangeFormula
AA2:AA3AA2=MIN(--S2#)
AB2:AB3AB2=MIN(--W2#)
S2:V3S2=--MID(O2,SEQUENCE(,4,,19),19)
W2:Z3W2=--MID(P2,SEQUENCE(,4,,19),19)
Dynamic array formulas.



As you can see above, If the cell contains 4 Date and times(Like Cell O2 and P2), then it will split and give the date correctly,

but if there is 3 or 2 or 1 value(Like Cell O3 and P3), then there will be a " value" Error.

S2,T2,U2,V2 are the split values of O2 Cell and W2,X2,Y2,Z2 are the split values of P2 Cell.

(AA2 is the earliest value of O2 Cell and AB2 is the largest value of P2 Cell)


due to that "Value" Error, Can't find the earliest or latest dates. What should I Do?
 
Upvote 0
As you can see above, If the cell contains 4 Date and times(Like Cell O2 and P2), then it will split and give the date correctly,

but if there is 3 or 2 or 1 value(Like Cell O3 and P3), then there will be a " value" Error.
That is because in the other thread where you asked about this you only gave one example and when helpers assumed all cells had 4 date/time values you never mentioned any issues about different numbers of values. ;)
Remember, you are very familiar with your data and any variations but we only know what you show and tell us.

Assuming that the data in column A is formatted as Text then try this to get the split values & get MIN/MAX

binetht.xlsm
ABCDEFG
1MinMax
206-10-2020 10:00:0008-10-2020 13:36:0012-10-2020 09:18:0012-10-2020 14:42:0006/10/2020 10:00:0008/10/2020 13:36:0012/10/2020 09:18:0012/10/2020 14:42:0006/10/2020 10:00:0012/10/2020 14:42:00
306-10-2020 10:00:0006/10/2020 10:00:0006/10/2020 10:00:0006/10/2020 10:00:00
401-11-2020 08:15:0008-10-2020 13:01:0012-03-2020 09:18:0001/11/2020 08:15:0008/10/2020 13:01:0012/03/2020 09:18:0012/03/2020 09:18:0001/11/2020 08:15:00
Split Date & Time (4)
Cell Formulas
RangeFormula
F2:F4F2=MIN(B2#)
G2:G4G2=MAX(B2#)
B2:E2,B4:D4,B3B2=--MID(A2,SEQUENCE(,LEN(A2)/19,,19),19)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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