Average Selected Cells From a Range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good morning --
I would like to average the values of cells B14:R14 if the corresponding
value in the range B6:R6 is "Y". I've searched these threads, tried
'sumproduct' and CSE formulas, but just can't quite get over the hump. Any
assistance offered would be greatly appreciated.

Thanks in advance.
 
=AVERAGE(IF(B6:R6="Y",B14:R14))

entered with ctrl + shift & enter

if B6:R6 can have Y and B14:R14 can be blank and you don't want count that
as 0

=AVERAGE(IF(B6:R6="Y",IF(B14:R14<>"",B14:R14)))

also array entered
 
You absolutely be da' man! Thanks very much.

It occurs to me that the CSE formulas, and the power of the 'embedded logic'
inside things like sumproduct are so powerful, and I wonder why the help
isn't better for these kinds of features...

Thanks again.
 

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