AVERAGE using multiple criteria

  • Thread starter Thread starter Julz
  • Start date Start date
J

Julz

Hopefully this will be my last question for a while.

If column Z=23902 or 28971, Average column G.

=AVERAGE((IPT_opened_ticket_report.xls!$G$2:$G$20000)*((IPT_opened_tick
et_report.xls!$Z$2:$Z$20000=29302)+(IPT_opened_ticket_report.xls!$Z$2:Z
$20000=28751)))

Thanx!!
~Julz
 
Hi
try the following array formula (entered with CTRL+SHIFT+ENTER)
=AVERAGE(IF((IPT_opened_ticket_report.xls!$Z$2:$Z$20000=29302)+(IPT_ope
ned_ticket_report.xls!$Z$2:Z$20000=28751),IPT_opened_ticket_report.xls!
$G$2:$G$20000))
 
I left something out on my earlier request.
If column N=1 and If column Z=23902 or 28971, Average column G.

thanx for your help!!
 
Hi
not tested but try
=AVERAGE(IF(((IPT_opened_ticket_report.xls!$Z$2:$Z$20000=29302)+(IPT_op
e
ned_ticket_report.xls!$Z$2:Z$20000=28751))*(IPT_opened_ticket_report.xl
s!$N$2:$N$20000=1),IPT_opened_ticket_report.xls!
$G$2:$G$20000))
 
Hi
try the following non-array solution
=SUMPRODUCT((IPT_opened_ticket_report.xls!$N$2:$N$20000=1)*((IPT_opened
_ticket_report.xls!$Z$2:$Z$20000=23902)+(IPT_opened_ticket_report.xls!$
Z$2:$Z$20000=28751)),IPT_opened_ticket_report.xls!$G$2:$G$20000)/SUMPRO
DUCT((IPT_opened_ticket_report.xls!$N$2:$N$20000=1)*((IPT_opened_ticket
_report.xls!$Z$2:$Z$20000=23902)+(IPT_opened_ticket_report.xls!$Z$2:$Z$
20000=28751)))
 
I appreciate your continued expertise, however, I'm now getting a #DIV/0!
error.
Any idea what the cause may be?
 
Hi
looks like no data matches your criteria :-)
If you like, email me your file and I'll take a look at it
 

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