Hello, I'm hoping someone can help. I'm using =IF(C4<D4,MAX(0,MIN(D4,upper)-MAX(C4,lower)),MAX(0,upper-C4)+MAX(0,D4-lower)) to calculate the total hours that fall between two times however if cell C4 or D4 are blank my formula still returns a value. Could anyone advise what I can do so that blank cells result in either a zero or blank formula cell?
I use the above to report on overlapping times.
I use the above to report on overlapping times.