TimeValue and DATEVALUE("6/24/2020 12:00:00 AM") give #VALUE! error

Carbonze

New Member
Joined
Apr 6, 2016
Messages
4
I come infrequently to Excel. Date and Time are frustrations!

My system expects dd/mm/yyyy hh:mm:ss
The data are mm/dd/yyyy hh:mm:ss

I want to do arithmetic with time of day. How to tell excel of the date format??

What now?!
In hope for help!!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You did not provide a clear question. A few examples complete with expected results would have been useful.

use Data text to Columns delimited space and date MDY
Custom format D4 [h]:mm:ss

Date conversion.xlsm
ABCD
1Data Text to Columns
203-31-2019 10:00:0231-03-1910:00:0231-Mar-19 10:00:02
304-01-2019 10:00:1501-04-19 0:0010:00:1501-Apr-19 10:00:15
424:00:13
5
2a
Cell Formulas
RangeFormula
D2:D3D2=B2+C2
D4D4=D3-D2
 
Upvote 0
Dave, many thanks. And point taken.

Yes it was text and not date! Imported from power meter.
M
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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