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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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