I feel like I should know this, but I'm having a brain cramp.
I want to find the average of column B for the values that have "Y" in column D.
I'm also looking for this one:
For all values that have "Y in column D, how many of those have "N" in column Z.
Can someone point me in the right direction, thanks!
Last edited by shg; 02-01-2010 at 06:20 PM.
In Excel 2007 and later (and presumably Mac2008 and later?) you can use the AVERAGEIF (one criteria) and AVERAGEIFS (multiple criteria) function.
If those aren't available, you can use the array version like:
=AVERAGE(IF(D1:D100="Y",B1:B100))
confirmed with CTRL+SHIFT+ENTER, not just ENTER. (The AVERAGEIF/S do not need to be array entered.)
Hi
1.
2.Code:=AVERAGEIF(D1:D100,"Y",C1:C100)
RgdsCode:=COUNTIFS(D1:D100,"Y",N1:N100,"N")
Richard Buttrey
If this was useful then please rate it appropriately.
Click the small star iconat the bottom left of my post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks