Average If Statement

jimsjams

New Member
Joined
Nov 6, 2008
Messages
29
Hi there,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
I’m trying to add additional criteria to an average if statement and I can’t quite manage it. At the moment I have a statement that works that averages the % sellout of units where the % sellout is greater than 0:
<o:p> </o:p>
{=AVERAGE(IF($F$5:$F$1024="% SELLOUT UNITS", IF(H$5:H$1024>0,H$5:H$1024)))}
<o:p> </o:p>
What I want to do is add additional criteria, so that as well as the % sellout of units being greater than 0 the type has to be “P” (this is in column G). I think it needs a statement like the following, but I can’t seem to fit the two together.
<o:p> </o:p>
IF($G$5:$G$1024="P",H$5:H$1024)
<o:p> </o:p>
Hope this makes sense; let me know if you need additional info.
<o:p> </o:p>
Thanks in advance for any help / ideas.
<o:p> </o:p>
James<o:p></o:p>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try...

Control+shift+enter, not just enter:
Code:
=AVERAGE(
   IF($F$5:$F$1024="% SELLOUT UNITS",
   IF($G$5:$G$1024="P",    
   IF(H$5:H$1024>0,
     H$5:H$1024))))

Hi there,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
I’m trying to add additional criteria to an average if statement and I can’t quite manage it. At the moment I have a statement that works that averages the % sellout of units where the % sellout is greater than 0:
<o:p> </o:p>
{=AVERAGE(IF($F$5:$F$1024="% SELLOUT UNITS", IF(H$5:H$1024>0,H$5:H$1024)))}
<o:p> </o:p>
What I want to do is add additional criteria, so that as well as the % sellout of units being greater than 0 the type has to be “P” (this is in column G). I think it needs a statement like the following, but I can’t seem to fit the two together.
<o:p> </o:p>
IF($G$5:$G$1024="P",H$5:H$1024)
<o:p> </o:p>
Hope this makes sense; let me know if you need additional info.
<o:p> </o:p>
Thanks in advance for any help / ideas.
<o:p> </o:p>
James<o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top