I'm having issues getting this formula to work and it seems to be the date that is giving me problems, as the formula works when I remove the date… but that defeats the purpose of the formula.
Basically, I'm trying to calculate the Average % based on criteria in a separate sheet. I've nested the date in the sheet summary with a formula calculating for 6 months (183 days) ago. The range I want is for the last 6 months, so the dates we're considering need to be greater than (or equal to) the date in the 6 months ago box.
=IFERROR(IF(COUNT(CHILDREN()) > 0, AVG(CHILDREN([Average Settlement % last 6 months]@row)), AVG(COLLECT({AHS %s}, {AHS OC FIRM}, CONTAINS([Firm (Search)]@row, @cell), {AHS Style}, CONTAINS(Creditor@row, @cell), {AHS Type}, "Settlement", {AHS Date}, >=[6 Months Ago]#, {AHS State}, STATE@row))), "")
As is, the formula errors out and because of the IFERROR, returns a blank.