Hi everyone,
I'm trying to count the amount of times 2 different cells have the same date and also the times in a 3rd cell need to match and the 4th cell need to be before/after a certain time.
In my formula I've only managed to put in the times, so if the date is incorrect it will be counted anyway. Do you know a fix or maybe a better way of doing it? Any input very appreciated.
For example:
Cell D2: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;"<="&TIME(7;0;0))
Cell D3: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;">="&TIME(7;0;1);D9:D503;"<="&TIME(8;0;0))
Cell D4: =D2+D3
Cell D5: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;">="&TIME(8;0;1))
I'm trying to count the amount of times 2 different cells have the same date and also the times in a 3rd cell need to match and the 4th cell need to be before/after a certain time.
In my formula I've only managed to put in the times, so if the date is incorrect it will be counted anyway. Do you know a fix or maybe a better way of doing it? Any input very appreciated.
For example:
Cell D2: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;"<="&TIME(7;0;0))
Cell D3: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;">="&TIME(7;0;1);D9:D503;"<="&TIME(8;0;0))
Cell D4: =D2+D3
Cell D5: =COUNTIFS(B9:B503;"="&TIME(7;0;0);D9:D503;">="&TIME(8;0;1))