Forum Discussion
Formula for average to eliminate blank cells
AVERAGE() shall ignore blanks and texts, not sure how did you receive 3. Anyway, to ignore something, e.g. zero
=AVERAGEIF(D1:U1,"<>0")
- Annette827May 03, 2021Copper Contributor
Thank you. I am getting the same answer - 3. Maybe it is a weighted average that I am looking for. Again , there are 18 weeks, 15 of them have nothing in them, one has 3 and two of them have 1 so I can't say the average is 3 per week when most don't have any! I'm not really sure. but appreciate you trying to help. SergeiBaklan
- SergeiBaklanMay 03, 2021Diamond Contributor
Sorry, I can't understand how do you receive 3 as an answer and therefore not sure which result you'd like to have.
From D1 to U1 we have 18 columns. Sum of values in them is 5. If ignore blank cells we have =5/3, if do not ignore =5/18. In both cases that doesn't return 3.
If in the middle not blank cells but cells with zero that also doesn't return 3.