Average Index Match formula to exclude 0s

Mariyka1

New Member
Joined
Nov 1, 2016
Messages
44
Hello,

I have an Average Index Match formula to get the average from a multiple columns. Here's what the formula looks right now and ids working fine - although I noticed I have some 0's in the data and need to exclude this from the average - how would I add it to this formula?

=IFERROR(AVERAGE(INDEX(ALLCOMPS!N:Y,MATCH('SFDC Report'!B2,ALLCOMPS!B:B,0),0)),"")

your help is much appreciated!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi, you can try AVERAGEIF() - for example:

=IFERROR(AVERAGEIF(INDEX(ALLCOMPS!N:Y,MATCH('SFDC Report'!B2,ALLCOMPS!B:B,0),0),"<>0"),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
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