Averaging COUNTIF

W

Wynn

I want to average numbers in column B, only in column A has a specific term
(in other words, an average of all rates in column B where column A contains
the word "DG").

I am figure I need to use COUNTIF, OFFSET, and AVERAGE functions, but I am
having trouble putting them together. Thanks!
 
J

JulieD

Hi Wynn

only SUMIF and COUNTIF :)

=SUMIF(A1:A10,"DG",B1:B10)/COUNTIF(A1:A10,"DG")

Cheers
JulieD
 
W

Wynn

Frank,
Thank you. This is working very well. I am having a problem however,
because I want to test values for two columns and it does not seem to be
working with the AND function. Am I missing something?:

array formula
=AVERAGE(IF(AND(A1:A100="DG",C1:C100="BG"),B1:B100))
 

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