Forum Discussion

robertwgmeinergmail's avatar
robertwgmeinergmail
Copper Contributor
Dec 26, 2022
Solved

Mean value calculation in Excel

Mean value calculation in Excel

I want to add 5 cells and calculate the mean value if the individual cell is >0. The fifth cell must be added with twice the value and the average value must then be calculated by dividing the total by 6 instead of 5. What is the formula for this?

13 Replies

  • Let's say the cells are F6:F10.

     

    =(SUMIF(F6:F10,">0")+F10)/(COUNTIF(F6:F10,">0")+(F10>0))

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        robertwgmeinergmail 

        Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?

Resources