+ Reply to Thread
Results 1 to 35 of 35

Average Non-Continuous Cells Without Zero's

  1. #1
    Registered User
    Join Date
    07-20-2005
    Posts
    2

    Thumbs down Average Non-Continuous Cells Without Zero's

    One more problem and this spreadsheet should be done...

    I need to average the results in a number of cells (C32+H32+C58+H58+C84+H84) without including cells that have a value of 0.0%

    I have tried:
    =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84))) but this just seems to Add everything together

    I can't sum the cells and then divide by a COUNTIF becuase it won't let me select anything other than a range.

    Any suggestions? Is it even possible?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    I do not understand why you cannot use COUNTIF()

    =SUM(A:A)/COUNTIF(A:A,">0")

    If those cells are subtotal, you can select everything and divide the result by 2.



    Quote Originally Posted by raeleanne
    One more problem and this spreadsheet should be done...

    I need to average the results in a number of cells (C32+H32+C58+H58+C84+H84) without including cells that have a value of 0.0%

    I have tried:
    =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84))) but this just seems to Add everything together

    I can't sum the cells and then divide by a COUNTIF becuase it won't let me select anything other than a range.

    Any suggestions? Is it even possible?

    Thanks
    Last edited by Morrigan; 07-20-2005 at 04:20 PM.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    You can use this approach when the list of individual cells is not long:

    =SUM(MAX(C32,0),MAX(H32,0),MAX(C58,0),MAX(H58,0),MAX(C84,0),MAX(H84,0))/SUM((C32>0),(H32>0),(C58>0),(H58>0),(C84>0),(H84>0))


    Does that help?
    Ron

  4. #4
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  5. #5
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  6. #6
    Registered User
    Join Date
    07-20-2005
    Posts
    2
    You can't use COUNTIF on cells that are not in a range and I was not sure how to make noncontinuous cells into a range.

    =SUM(MAX(C32,0),MAX(H32,0),MAX(C58,0),MAX(H58,0),M AX(C84,0),MAX(H84,0))/SUM((C32>0),(H32>0),(C58>0),(H58>0),(C84>0),(H84>0)) gives me an error of #NAME?

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......) works.

    Thank you so much. It is not easy to do but I think it is one of the best solutions.

    Thanks again for all of your help. The Spreadsheet is done!!!! yeah

  7. #7
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =AVERAGE(IF(N(INDIRECT({"C32","C58","C84","H32","H58","H84}))>0,N(INDIRECT({"C32","C58","C84","H32","H58","H84}))))

    or

    =AVERAGE(IF(SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6})>0,SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6})))

    Both these formulas need to be confired with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    Quote Originally Posted by raeleanne
    One more problem and this spreadsheet should be done...

    I need to average the results in a number of cells (C32+H32+C58+H58+C84+H84) without including cells that have a value of 0.0%

    I have tried:
    =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84))) but this just seems to Add everything together

    I can't sum the cells and then divide by a COUNTIF becuase it won't let me select anything other than a range.

    Any suggestions? Is it even possible?

    Thanks

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Nicely done, Domenic.

    I think wrapping either of them in a MAX, MIN, or SUMPRODUCT function will eliminate the need for CSE:

    =MAX(AVERAGE(IF(N(INDIRECT({"C32","C58","C84","H32","H58","H84"}))>0,N(INDIRECT({"C32","C58","C84","H32","H58","H84"})))))

    =MIN(AVERAGE(IF(SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6})>0,SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6}))))

    Regards,
    Ron

  9. #9
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by Ron Coderre
    Nicely done, Domenic.
    Thanks Ron! I came across the second formula a couple of days ago. It's definitely an interesting way to deal with non-contiguous cells. The advantage is that it doesn't use the INDIRECT function, which as you know is volatile. But the disadvantage is that the formula, as it stands, doesn't allow for empty cells. In this case, the formula could be changed as follows...

    =AVERAGE(IF(SMALL((C32,C58,C84,H32,H58,H84),ROW(INDIRECT("1:"&COUNT(C32,C58,C84,H32,H58,H84))))>0,SMALL((C32,C58,C84,H32,H58,H84),ROW(INDIRECT("1:"&COUNT(C32,C58,C84,H32,H58,H84))))))

    I think wrapping either of them in a MAX, MIN, or SUMPRODUCT function will eliminate the need for CSE:

    =MAX(AVERAGE(IF(N(INDIRECT({"C32","C58","C84","H32","H58","H84"}))>0,N(INDIRECT({"C32","C58","C84","H32","H58","H84"})))))

    =MIN(AVERAGE(IF(SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6})>0,SMALL((C32,C58,C84,H32,H58,H84),{1,2,3,4,5,6}))))
    While that would certainly work, my preference is to exclude the MAX and MIN functions and confirm the formula with CONTROL+SHIFT+ENTER. But that's just my personal preference.

  10. #10
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  11. #11
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  12. #12
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  13. #13
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  14. #14
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  15. #15
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  16. #16
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  17. #17
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  18. #18
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  19. #19
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  20. #20
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  21. #21
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  22. #22
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  23. #23
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  24. #24
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  25. #25
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  26. #26
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  27. #27
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  28. #28
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  29. #29
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  30. #30
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  31. #31
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  32. #32
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  33. #33
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  34. #34
    Bernie Deitrick
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    raeleanne,

    =(C32+H32+C58+H58+C84+H84)/SUM(IF(C32<>0,1,0),IF(H32<>0,1,0),......)

    HTH,
    Bernie
    MS Excel MVP


    "raeleanne" <[email protected]> wrote in message
    news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile: http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




  35. #35
    Biff
    Guest

    Re: Average Non-Continuous Cells Without Zero's

    Hi!

    Create a named range for C32,H32,C58,H58,C84,H84.

    =SUM(named_range)/SUMPRODUCT((MOD(ROW(32:84),26)=6)*(C32:C84>0)+(H32:H84>0))

    Biff

    "raeleanne" <[email protected]> wrote
    in message news:[email protected]...
    >
    > One more problem and this spreadsheet should be done...
    >
    > I need to average the results in a number of cells
    > (C32+H32+C58+H58+C84+H84) without including cells that have a value of
    > 0.0%
    >
    > I have tried:
    > =AVERAGE(IF((C32+H32+C58+H58+C84+H84)>=0,(C32+H32+C58+H58+C84+H84)))
    > but this just seems to Add everything together
    >
    > I can't sum the cells and then divide by a COUNTIF becuase it won't let
    > me select anything other than a range.
    >
    > Any suggestions? Is it even possible?
    >
    > Thanks
    >
    >
    > --
    > raeleanne
    > ------------------------------------------------------------------------
    > raeleanne's Profile:
    > http://www.excelforum.com/member.php...o&userid=25437
    > View this thread: http://www.excelforum.com/showthread...hreadid=388759
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1