JonRowland
Active Member
- Joined
- May 9, 2003
- Messages
- 417
- Office Version
- 365
- Platform
- Windows
Hi,
Sorry this appears to be have been spoken numberous times but I can't seem to find an answer that fits my problem.
I have two cells which contain date/time
L2 = 25/12/2010 12:00:01
M2 = 25/12/2010 13:00:01
I need to work out the difference between M2 and L2
so my vba for this is
<code>
Cells(Row, 15).Value = Cells(Row, 13) - Cells(Row, 12)
</code>
This is ok is time is positive for get ######### when negative. So how can I get it to show the negative as -1 ?
Jon
Sorry this appears to be have been spoken numberous times but I can't seem to find an answer that fits my problem.
I have two cells which contain date/time
L2 = 25/12/2010 12:00:01
M2 = 25/12/2010 13:00:01
I need to work out the difference between M2 and L2
so my vba for this is
<code>
Cells(Row, 15).Value = Cells(Row, 13) - Cells(Row, 12)
</code>
This is ok is time is positive for get ######### when negative. So how can I get it to show the negative as -1 ?
Jon