Average If Array Ignoring 0's

Lewzerrrr

Active Member
Joined
Jan 18, 2017
Messages
256
Hi,

I have a huge table of data that I need to extract some detail out of using multiple conditions.

The column conditions are in B6:B33 where I need it to equal A1 in Sheet1.
The 1st row condition is in C2:GJ2 where I need it to equal A2 in Sheet1.
The 2nd row condition is in C5:GJ5 where I need it to equal A3 ("IAQ") in Sheet1.

For example, this would be the SUM solution where the 2nd row condition is actually static as "Options".

=SUM(IF('SS18 Planned Options'!$B$6:$B$33=$A1,IF('SS18 Planned Options'!$C$5:$GJ$5="Options",IF('SS18 Planned Options'!$C$2:$GJ$2=A$2,'SS18 Planned Options'!$C$6:$GJ$33)),0))
Confirmed with CSE.

I would need to change "Options" to "IAQ" and make it find the average without factoring in 0's.

Thanks,
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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