# AVERAGEIFS similar function

I need a formula (similar to an AVERAGEIFS statement in excel) to give me the average of the numbers in the right column if the value in the left column is prior to today's date. Thanks!

• @David Yowell we have AVERAGEIF in Smartsheet, but not AVERAGEIFS, so a little workaround is needed here.

My suggestion would be to use a SUMIFS counting the numbers that meet the criteria of a date before today, divided by a COUNTIF counting the dates in the date column that are before today, which would give you your average of those numbers that met the SUMIF condition. Something like this:

SUMIFS(NUMCOLUMN:NUMCOLUMN, DATECOLUMN:DATECOLUMN, < TODAY()) / COUNTIF(DATECOLUMN:DATECOLUMN, < TODAY())

Would that work?

Thanks,

Alex

• AVERAGEIF should be working here.

=AVERAGEIF([Left Column]:[Left Column], < TODAY(), [Right Column]:[Right Column])

Hope it helped!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!