highflight1985
New Member
- Joined
- Jun 8, 2011
- Messages
- 20
I have two date values which did the following to calculate the time difference between them:
=IF(AND(A4<>0,B4<>0,C4<>0,D4<>0),SUM(K4/(((C4+D4)-(A4+B4))*24)),"")
where C4 is a date, D4 is a time; same for A4 and B4 respectively.
How do I take the result of that and use it in another formula on another sheet by referencing the cell? When I do, I get "VALUE" error, saying it's of the wrong data type...
=IF(AND(A4<>0,B4<>0,C4<>0,D4<>0),SUM(K4/(((C4+D4)-(A4+B4))*24)),"")
where C4 is a date, D4 is a time; same for A4 and B4 respectively.
How do I take the result of that and use it in another formula on another sheet by referencing the cell? When I do, I get "VALUE" error, saying it's of the wrong data type...