RESOLVED: AVG(Collect) Formula Returning #InvalidDataType

Kia Gibbs
Kia Gibbs ✭✭✭✭
edited 08/26/24 in Formulas and Functions

Hello,

First, thank you to all the formula gurus who lend your time to help us with our broken formulas!

My Task: calculate average response time per fiscal year.

The Formula Used:

=AVG(COLLECT([Response Time]:[Response Time], [Allotted Plan Review Time]:[Allotted Plan Review Time], "30", [Fiscal Year]:[Fiscal Year], "2025"))

Formula Breakdown:

[Response Time]:[Response Time] - Range to Average

[Allotted Plan Review Time] - Criteria 1, search for allotted time that equals 30 days

[Fiscal Year] - search for fiscal year that is equal to 2025

Issue: I've reviewed and followed the rules of other avg(collect) questions/answers. The trouble in my formula begins when I include the Fiscal Year. Fiscal Year formula references a date column but returns a number (ex: 2025)

Fiscal Year Column is calculated as follows:

=IF([FYcal: Month]@row < 7, [FYCal: Year]@row, [FYCal: Year]@row + 1)

The sheet I am using is a running index from all time. I need averages per fiscal year. Any suggestions/recommendations would be greatly appreciated.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!