Average vlookup exclude zero/blanks

EB1217

New Member
Joined
Jun 3, 2011
Messages
2
Hello. I am trying to find an average of four points within a table on a different sheet; Working in Sheet1, referencing Table1 on Sheet2, has four points (B1,D1,F1,G1) that I would like to know the average of. Two points have numbers while two points are blank. In using an average formula and a vlookup formula with A1 on both sheets that is the look-up value, the average is treating the blanks as zeros which in return lowers the average. Anyone have any suggestions?

Thank you in advance.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I think you need an averageif formula.

Using those cell references you mentioned, the formula would be something like:

=AVERAGEIF(B1:G1,"<>0",B1:G1)
 
Upvote 0
Averageif should do it, in the criteria range, put "<>"" " to indicate not blank or"<>0" to indicate not zero
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,934
Members
449,275
Latest member
jacob_mcbride

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