...a little confusing....
but if I take you literally...then I come up with this:
=IF(COUNTIF(B3:B14,">0"),IF(ISNA(B17),AVERAGE(B3:B14),NA()),0)
is this what you need?
...a little confusing....
but if I take you literally...then I come up with this:
=IF(COUNTIF(B3:B14,">0"),IF(ISNA(B17),AVERAGE(B3:B14),NA()),0)
is this what you need?
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Having the same problem with that formula as I was mine.
It gives me N/A preceded with a # sign (not sure why), but is still will not calculate the AVERAGE when all the values are not available.
Here is the file so you can see what I have so far.
Thank you again for the help!
So I didn't know if you only wanted the average of the months with values or the months with the zero months included. So if you want an average of just the months available, try.
=IF(COUNTIF(B3:B14,">0")=12,"N/A",ROUNDUP(SUM(B3:B14)/COUNTIF(B3:B14,">0"),0))
If you want the monthly average including the 0 months try:
=IF(COUNTIF(B3:B14,">0")=12,"N/A",ROUNDUP(AVERAGE(B3:B14),0))
Exactly what I needed. THANK YOU!Originally Posted by JRock
..........
Try also:Originally Posted by SOMLSS1
![]()
=IF(COUNT(B3:B14)=12,NA(),ROUNDUP(AVERAGE(B3:B14),0))
I can't believe I'm still stuck on this!
I have modified the formula to:
Which does what I need it to with N/A but will not AVERAGE(B3:B14) unless all 12 month values are there. I need it to calculate if 1-11 are there but not the 12th value.![]()
=IF(COUNTIF(B3:B14,""),"N/A",ROUNDUP(AVERAGE(B3:B14),0))
How is this different than my last suggested formula?
Instead of the cell reading #DIV/0! when there are no values set for "Usage" it reads N/A (not available), like I need it to.
But your formula calculate the AVERAGE like it's supposed as mine wont.
Originally Posted by SOMLSS1
![]()
![]()
So do we have a solution or not?
I'm not following.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks