Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
If cells used in formula are blank, then leave the formula cell blank

I have a =AVG formula in a column that gets its info from 2 other Columns. If the two other cells are blank, the column with the =AVG formula populates with a #DIVIDE BY ZERO error message.
Is there a way to have the Average Column display empty if the other two are empty.
Thanks
Comments
-
Here is the formula I have in the Column
=AVG([L-Score]1, [O-Score]1)
-
=IF(OR(Isblank([L-Score]1),Isblank([O-Score]2)), "", AVG([L-Score]1, [O-Score]1) should do the trick, unless I am missing something else. Basically, if either of the scores are blank, return a blank, or run the avg formula.
-
Mike:
Your formula worked like a charm, thank you so much for the help.
Ralph
-
You're welcome. Happy formulating!
-
Mike's formula is spot on.
This also works:
=IFERROR(AVG([L-Score]1, [O-Score]1) , "")
Craig
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 503 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives