antsaresocrazy
New Member
- Joined
- Apr 7, 2013
- Messages
- 2
i tried searching for this, but couldn't find a good explanation for my particular problem. All the others involve simple averaging, but nothing that excludes zeros. I tried pasting my formula in place of the simple averages but excel does not approve. And because most of the answers I've looked at don't have explanations, I can't reason my way any closer...
I am using excel 2008 on my mac, and I'm trying to create an average that only includes numbers that are greater than zero. (Its a spreadsheet for finances, so I don't want to include the future months in my average.)
The average is working correctly, as long as there is at least one number there. However, if there are no numbers in any field, then I'm getting the Div/0 error. I wouldn't care so much, except that there are other formulas that are dependent on that one, and those sums all return the Div/0 error.
Here is a screen shot of what I've got going on. The monthly values are pulled from separate monthly input tabs.
The Formula in the "Average" column, and the top row is
=(SUM(B14:M14))/(COUNTIF(B14:M14,">0"))
This Formula works perfectly, and so does the next one down. Is there a way I can change my formula to return a dash or on the third row down?
I've been working with this for a bit and I can't seem to figure out the proper sequence or something...
Thanks in advance!
John
I am using excel 2008 on my mac, and I'm trying to create an average that only includes numbers that are greater than zero. (Its a spreadsheet for finances, so I don't want to include the future months in my average.)
The average is working correctly, as long as there is at least one number there. However, if there are no numbers in any field, then I'm getting the Div/0 error. I wouldn't care so much, except that there are other formulas that are dependent on that one, and those sums all return the Div/0 error.
Here is a screen shot of what I've got going on. The monthly values are pulled from separate monthly input tabs.
The Formula in the "Average" column, and the top row is
=(SUM(B14:M14))/(COUNTIF(B14:M14,">0"))
This Formula works perfectly, and so does the next one down. Is there a way I can change my formula to return a dash or on the third row down?
I've been working with this for a bit and I can't seem to figure out the proper sequence or something...
Thanks in advance!
John