What happens when the times cross midnight - eg "IST" 23:55 and "Actual" 0:30 ?
I suspect you will need to build in some logic to differentiate the above from the likes of example 3, ie:
C2:
=IF(OR($B2>$A2,(HOUR($A2)-HOUR($B2))>12),MOD($B2-$A2,1),$A2)
copied down
format as Time
in the above we calculate the time difference where either Actual exceeds IST or where the hour differences would imply a midnight cross over
(in the latter case the Actual Time precedes the IST Time despite being "greater" in reality)
Bookmarks