sumproduct or...?

T

Tflight

Hi,

I am trying to find the average of the total number for all the cells that
in their row have a number that is greater than 0 in one of the categories.

The formula I sort of have is:
IF(G6:G327>0),AVERAGE(K6:K327)

I just learned about the function sumproduct, but I'm not sure if it would
work in this case. I don't really understand the function anyhow. Any help
would be appreciated.
 
G

Glenn

Tflight said:
Hi,

I am trying to find the average of the total number for all the cells that
in their row have a number that is greater than 0 in one of the categories.

The formula I sort of have is:
IF(G6:G327>0),AVERAGE(K6:K327)

I just learned about the function sumproduct, but I'm not sure if it would
work in this case. I don't really understand the function anyhow. Any help
would be appreciated.


Try this:

=SUMPRODUCT(K6:K327*(G6:G327>0))/COUNTIF(G6:G327,">0")
 
C

Conrad S

Use a array formula:

=AVERAGE(IF(G6:G327>0,K6:K327,""))

When you're done typing, press Ctrl+Shift+Enter.
 
G

Gary''s Student

=AVERAGE(IF(G6:G327>0,K6:K327,""))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

conditional formatting 1
countif vs. if???? 6
Excel Sumproduct 0
Sumproduct in matrix means 3
SUMPRODUCT with AVERAGE result 3
#value error for sumproduct using RIGHT cmd 0
Average using Sumproduct 4
Sum Product based on value 2

Top