Hi there,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
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
> </o
>
{=AVERAGE(IF($F$5:$F$1024="% SELLOUT UNITS", IF(H$5:H$1024>0,H$5:H$1024)))}
<o
> </o
>
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
> </o
>
IF($G$5:$G$1024="P",H$5:H$1024)
<o
> </o
>
Hope this makes sense; let me know if you need additional info.
<o
> </o
>
Thanks in advance for any help / ideas.
<o
> </o
>
James<o
></o
>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
![Eek! :o :o](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f631.png)
![Eek! :o :o](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f631.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
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
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
{=AVERAGE(IF($F$5:$F$1024="% SELLOUT UNITS", IF(H$5:H$1024>0,H$5:H$1024)))}
<o
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
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
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
IF($G$5:$G$1024="P",H$5:H$1024)
<o
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
Hope this makes sense; let me know if you need additional info.
<o
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
Thanks in advance for any help / ideas.
<o
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
James<o
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
![Stick out tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)