Adding if to Average If Array function

  • Thread starter Thread starter Diddy
  • Start date Start date
D

Diddy

Hi,

I recently had help understanding the following formula
{=IF(ISERROR(AVERAGE(IF(Score>0,Score))),"",AVERAGE(IF(Score>0,Score)))}
Thanks to Luke M, Pete UK and David Biddulph who provided the explanation.

I've now been asked to add to this formula so that if either Q3 or Q4 is
greater than 4 then the average cannot be lower than 3.
Q1:Q35 is the named range score.

This is really complicated because I still need to have an average and I'm
thinking that the If part is non array but the average part still needs to be
an array.

Can you mix and match or is it not possible?

Many thanks
Diddy
 
Try

=IF(COUNTIF(Q3:Q4,">4"),MAX(3,AVERAGE(IF(score>0,score))),
AVERAGE(IF(score>0,score)))
 
Hi Jacob,

I'm probably doing something wrong but I get #VALUE!. Am I supposed to enter
as an array formula?

Cheers
Diddy
 
Yes.
--
David Biddulph

Diddy said:
Hi Jacob,

I'm probably doing something wrong but I get #VALUE!. Am I supposed to
enter
as an array formula?

Cheers
Diddy
 

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

Back
Top