I am trying to make cell G5
SUM
or COUNTIF
(not sure which is better) the number of OPEN
's and CLOSED
's in column A
on sheet SPREADS LOG
between the date of 1 June 21 and 30 June 21.
However, if there is no OPEN
or CLOSED
between this date range I would like G5
to return a blank.
This is the current formula in G5
=IF(COUNTIFS('SPREADS LOG'!A:A,"OPEN",'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28)),COUNTIFS('SPREADS LOG'!A:A,"CLOSED",'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28)),"")
If anyone could tweak this that would be great.