Given Times are numeric values you can add a pre-emptive COUNT testOriginally Posted by mar_t
=IF(COUNT(C2:D2)<2,0,MAX(0,MIN(D2,INT(C2)+1+"6:00")-MAX(C2,INT(C2)+"22:00")))
Given Times are numeric values you can add a pre-emptive COUNT testOriginally Posted by mar_t
=IF(COUNT(C2:D2)<2,0,MAX(0,MIN(D2,INT(C2)+1+"6:00")-MAX(C2,INT(C2)+"22:00")))
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks