Averageifs - criteria is cell is not blank

T

Tonso

I have the folloing averageif formula in XL2007:

AVERAGEIFS($Q:$Q,$R:$R,B4,$Q:$Q,"<"&B3,$Q:$Q,"<>0",$D:$D,"<>"&$B2)

The last criteria is "<>B2". B2 is blank, and my formual work ok, as I do not want to include in the average any number in column Q if the cell in column B on the corresponding row is a blank. My question is, how can I write the formula so that it reads <>blank, or <>"", or whatver, instead of having to refer to to B6 to indicate the crieria is a blank cell?

Thanks,

Tonso
 
C

Claus Busch

Hi,

Am Thu, 29 Aug 2013 08:33:14 -0700 (PDT) schrieb Tonso:
AVERAGEIFS($Q:$Q,$R:$R,B4,$Q:$Q,"<"&B3,$Q:$Q,"<>0",$D:$D,"<>"&$B2)

The last criteria is "<>B2". B2 is blank, and my formual work ok, as I do not want to include in the average any number in column Q if the cell in column B on the corresponding row is a blank. My question is, how can I write the formula so that it reads <>blank, or <>"", or whatver, instead of having to refer to to B6 to indicate the crieria is a blank cell?

try:
=AVERAGEIFS(Q:Q,R:R,B4,Q:Q,"<"&B3,Q:Q,"<>0",D:D,"<>")


Regards
Claus B.
 

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

Top