# How do I write a formula to average the cells that are >89% and <100%?

Options

• ✭✭✭✭✭
Options

Hey @Jess A,

Try this formula:

=(SUMIFS([%]:[%], [%]:[%], <1, [%]:[%], >0.89)) / (COUNTIFS([%]:[%], <1, [%]:[%], >0.89))

Hope this helps!

If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!

I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!

• ✭✭✭✭✭
Options

Hey @Jess A,

Try this formula:

=(SUMIFS([%]:[%], [%]:[%], <1, [%]:[%], >0.89)) / (COUNTIFS([%]:[%], <1, [%]:[%], >0.89))

Hope this helps!

If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!

I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!

• Options

Thank you that worked.

How would if count those that fit the same criteria then divided by total count of resources?

• ✭✭✭✭✭
Options

Hey @Jess A,

You mean to count the whole column of percentages? You'd change the COUNTIFS to COUNT:

=(SUMIFS([%]:[%], [%]:[%], <1, [%]:[%], >0.89)) / (COUNT([%]:[%])

If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!

I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!

• Options

@bisaacs Thank you.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!