I think the question asks for a count of rows where the date is before AY12 and the other columns are blank (not populated). It's simpler to "nest" the IF statements, I think - I'd use this version
=ARRAYFORMULA(SUM(if(Mona!$C$4:$C$400<=$AY12,if(Mona!$B$4:$B$400="",if(Mona!$D$4:$D$400="",if(Mona!$E$4:$E$400="",1))))))
Note that blank cells in column C will also be deemed to be <=AY12 so if those might be blank too then you might want to add a check to ensure that that column is not blank, i.e.
=ARRAYFORMULA(SUM(if(Mona!$C$4:$C$400<=$AY12,if(Mona!$C$4:$C$400<>"",if(Mona!$B$4:$B$400="",if(Mona!$D$4:$D$400="",if(Mona!$E$4:$E$400="",1)))))))
Replace commas with semi-colons if your version requires it
Note that your COUNTIF formula quoted above doesn't need the "Arrayformula" part, can simply be this
=COUNTIF(Mona!$F$4:$F$400;"<="&$AY12)
For conditional formatting, apply the following to A2: "Custom formula is"
=AND(F2>TODAY(),G2>TODAY(),H2>TODAY())=TRUE
(You can then indicate what the range of formatting should be, e.g., A2:A to get all A column except the header).
To filter the content, use either Query or Filter. Here is an example with FILTER
:
=FILTER(Sheet1!A:E,Sheet1!F:F>TODAY(),Sheet1!G:G>TODAY(),Sheet1!H:H>TODAY())
If you place this on Sheet 2, it will pick the columns A-E from the rows where the stated conditions hold.
Note that having the same condition enforced in two different places is not future-proof: someone might change the condition in one place and forget to change in the other. I would add another column to Sheet 1, such as "Export":
=AND(F2>TODAY(),G2>TODAY(),H2>TODAY())
which will contain TRUE if the row is to be exported. (One can use the IF
statement to enter custom strings there.) Then both conditional formatting and the filter would use that column.
Best Answer
https://support.google.com/docs/answer/6055612
=datedif(G27,today(),"M")
where G27 is your reference date, could also be a quoted string for the first date "04/16/2018"that will provide you the number of months since the reference month, your "counter cell". Datedif for months only increments the month based on the numbered day of the month (ie the above will not say 1 until 05/16/2018. See "Notes" in the above link) which matches what you described.