Ask Experts Questions for FREE Help !
Ask
    santoshdream's Avatar
    santoshdream Posts: 11, Reputation: 1
    New Member
     
    #1

    Apr 5, 2010, 12:12 PM
    Average
    Hi,

    I am working on a spread sheet but unable to come up with the formula... here is what I want from the formula.

    Lets assume, in Col A; A to E are the various categories and in Col B, there is a score (0, 3, 6 & 9), In col C I need the average of Col B but if any of the score is "0" then the formula should not do the average but give "0" as a result. Attached file with some more details...
    A
    B
    C
    D
    E
    Attached Files
  1. File Type: xls Sample.xls (13.5 KB, 169 views)
  2. JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #2

    Apr 5, 2010, 02:04 PM

    Put this in C2:

    =IF(COUNTIF($B$2:$B$7, ">0")=0, 0, SUM($B$2:$B$7) / COUNTIF($B$2:$B$7, ">0"))
    WvR's Avatar
    WvR Posts: 16, Reputation: 3
    New Member
     
    #3

    Apr 21, 2010, 04:16 AM

    The formula =IF(COUNTIF($B$2:$B$7, ">0")=0, 0, SUM($B$2:$B$7) / COUNTIF($B$2:$B$7, ">0")) only solves the problem not to include a zero value in the average calculation
    The formula =IF(MIN($B$2:$B$7)=0, 0, AVERAGE($B$2:$B$7)) will not calculate an average if any of the values is zero but will rather display "0". This is if all other values are positive
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #4

    Apr 21, 2010, 01:44 PM

    Thanks for the correction WvR, I did misread the question. Unfortunate use of the disagree button for me, but it was wrong...
    WvR's Avatar
    WvR Posts: 16, Reputation: 3
    New Member
     
    #5

    Apr 22, 2010, 03:32 AM

    Sorry about that, I did go through some of your other answers and I am really impressed with your work.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Average speed and average velocity [ 2 Answers ]

Every morning you jog around 250 meter track four times in 30 minutes. What is your average speed and average velocity?

Average income of an average auto salesman [ 1 Answers ]

What is the average income of an average auto salesman?

Average speed/average velocity [ 1 Answers ]

A horse canters away from its trainer in a straight line, moving 150 m away in 19.0 s. It then turns abruptly and gallops halfway back in 4.6 s. (a) Calculate its average speed. m/s (b) Calculate its average velocity for the entire trip, using "away from the trainer" as the positive...

Okay what is the average here? [ 14 Answers ]

My son, who picks on me about liking to help others by answering ?'s here SAID that he read on the internet that women are more likely the higher percentage to use the computer to answer questions to help people on sites like this than men are. I told him that there is probably about equal on...

What is average? [ 5 Answers ]

Hi im 13 and i was just wondering wat the average weight is for a 13 yr old girl?:p


View more questions Search