JustOneQuestion
New Member
- Joined
- Jul 5, 2016
- Messages
- 19
Hi all,
I am trying to average 2 cells (k35 and m35) if the cell value is greater than 0. Those 2 cells are an average of the column. I want the equation to average both cells if there is a value in the cells, if not, just display one or the other cell value.
The issue that I am running into is if there is not a value in m35 (or k35) it still is averaging, so it is showing an incorrect value because it is dividing the number by 2.
Here is the old formula that I have been using, but I added a column in the middle, so I can no longer use the K35:L35.
=IFERROR(AVERAGEIF(K35:L35,">0"),0)
Any thoughts?
Thank you!
I am trying to average 2 cells (k35 and m35) if the cell value is greater than 0. Those 2 cells are an average of the column. I want the equation to average both cells if there is a value in the cells, if not, just display one or the other cell value.
The issue that I am running into is if there is not a value in m35 (or k35) it still is averaging, so it is showing an incorrect value because it is dividing the number by 2.
Here is the old formula that I have been using, but I added a column in the middle, so I can no longer use the K35:L35.
=IFERROR(AVERAGEIF(K35:L35,">0"),0)
Any thoughts?
Thank you!