I have a table with some date/time cells "DD/MM/YYYY HH:MM". I am using the following formula to ensure that when a date without a time is recorded (A5 in the example below) the system uses the data in Column B instead "=IF(TIME(HOUR(A1),MINUTE(A1),0),A1,B1)"
This solves the issue with returning #Value! when I am trying to work out the duration's of these jobs (when the time data is missing from the start of the job). I am now looking for a way (as part of the same formula) to take the data in Column B if the data in A does not have a date either (example in A7)? I'm just a little lost on the syntax of such a formula. So for example a call in A contains "DD/MM/YYYY" only or "HH:MM" only i wish to direct it to the same cell in B when displaying the duration times using one formula if that's possible?
____________A__________________B
____Orig Start DateTime_____Completed DateTime
1____01/09/2018 18:58____01/09/2018 19:58
2____01/09/2018 15:50____01/09/2018 15:57
3____01/09/2018 15:20____01/09/2018 15:26
4____01/09/2018 13:13____01/09/2018 13:21
5____01/09/2018_________01/09/2018 01:00
6____01/09/2018 06:25____01/09/2018 06:28
7____10:44______________01/09/2018 10:54
Sorry I just noticed the message about cross posting being discouraged. This was also posted here https://www.mrexcel.com/forum/excel-...ml#post5202977 but that was a few weeks ago to get help with the formula above. Once i realised i need to cover both missing time and missing date i added a comment but i am unsure of the response (or how to integrate it with the existing formula) and the guy is offline. In my panic i have come here.
Bookmarks