Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to average non-adjacent/contiguous cells excluding zeroes in Excel?

Supposing you have a fruit table as the right screenshot shown, and you need to calculate the average of all cells in the Quantity columns excluding the zeroes, how to get it done? The following methods can help you.

Average non-adjacent cells excluding zeroes with formula

Average non-adjacent cells excluding zeroes with Kutools for Excel


Quickly select interval (non-adjacent) rows or columns in specified range in Excel:

Click Kutools > Select > Select Interval Rows & Columns. The Kutools for Excel's Select Interval Rows & Columns utility helps you easily select interval rows or columns in specified range in Excel. See below screenshot:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download the free trial Now!


arrow blue right bubble Average non-adjacent cells excluding zeroes with formula


The following formula we will recommend can just work on non-adjacent cells in a single row. For example, you need to calculate the average of three date’s quantity of Apple excluding zero cells in the table, you can apply the following formula.

1. Select a blank cell, enter formula =AVERAGE(IF(MOD(COLUMN(C2:G2)-COLUMN(C2),2)=0,IF(C2:G2,C2:G2))) into the Formula Bar, and then press the Ctrl + Shift + Enter keys simultaneously.

Note: In the formula, C2 and G2 are the first and last cells of the non-adjacent cells. And number 2 in the formula means there is only one column interval between every non-adjacent cell. You can change them based on your needs.


arrow blue right bubble Average non-adjacent cells excluding zeroes with Kutools for Excel

If the non-adjacent cells do not locate in a single row, for example you need to calculate the average of all fruit’s quantities excluding zero cells, you can try the following method.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select the table which begins with the first non-adjacent column data you will include in your calculation. In this case, we select range C2:G7. Then click Kutools > Select > Select Interval Rows & Columns. See screenshot:

2. In the Select Interval Rows & Columns dialog box, select Columns in the Select section, and in the Options section, enter number 1 separately in the Interval of and Columns box, and then click the OK button.

Note: For the Interval of box, please enter the interval number based on the interval of your non-adjacent cells.

3. After clicking the OK button, all non-adjacent cells in selected range are selected immediately. For excluding the zero cells while calculating the average, please go ahead to click Kutools > Select > Select Specific Cells. See screenshot:

4. In the Select Specific Cells dialog box, please select Cell option in the Selection type section, then select Does not equal option and enter number 0 into the following textbox in the Specific type section. And finally click the OK button.

5. Then a dialog box will pop up to tell you how many cells are selected, please click the OK button. Now all non-adjacent cells in specified range are selected excluding all zero cells, and you can see the average result displays on the Status Bar of the workbook.

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.