AVg question

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

Guest

Would you somebody please tell me what the formula is:

If ByDay!a1:a65000 = "DFW" then do an average of the percentages found in
ByDay!d1:d65000
 
=IF(COUNTIF(a1:a65000,"dfw")=65000,AVERAGE(d1:d65000),"")

But I'm not sure that's what you're looking to do. The above says calculate
the average in the range D1:D65000 only if all cells in the range A1:A65000
contain "DFW".

Dave
 
thats exactly what I want. thanks.

Dave F said:
=IF(COUNTIF(a1:a65000,"dfw")=65000,AVERAGE(d1:d65000),"")

But I'm not sure that's what you're looking to do. The above says calculate
the average in the range D1:D65000 only if all cells in the range A1:A65000
contain "DFW".

Dave
 
this is an array formula that you commit by pressing Ctrl-Shift-Enter all at
once

=average(if(ByDay!a1:a65000 = "DFW",ByDay!d1:d65000))
 
thank you everyone! The first response, when I entered it, gave me a blank
result. But =AVERAGE(IF(ByDay!A1:A65000="DFW",ByDay!D1:D65000)) CSE worked!

thank you thank you
 
Yeah I didn't think my response would help you. As I say, it would only
return the average if ALL cells in A1:A65000 contained "DFW"

Dave
 

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

Averaging formula error 9
avg ? 16
Avg where question 1
Avg where ? 1
count if ?? List if? 1
Avg IF 1
Nested IF statement 3
ics attachment 1

Back
Top