

- #Excel 2016 for mac greying every other line how to
- #Excel 2016 for mac greying every other line code
- #Excel 2016 for mac greying every other line trial
If you want to know more about this feature, please click Select Interval Rows & Columns.ĭownload and free trial Kutools for Excel Now !ĭemo: Sum / average / count every other or nth row/column with Kutools for Excel With the above steps, you can also sum every other or nth column as you need.

With this function, you can set the number 2, 3, 4… in Interval of option, and you will select the cells with the interval of 2, 3, 4 rows starting from the first row of the range in the step 3.Ģ. Click OK, and every other row has been selected from the first row, and now, you can view the calculated results, such as average, sum, count are displayed at the bottom of the status bar. In the Select Interval Rows & Columns dialog box, specify the operations as you need, see screenshot:Ĥ. Click Kutools > Select > Select Interval Rows & Columns, see screenshot:ģ. Select the column that you want to sum every other or nth cell.Ģ. Then save this code, and type the following formula into a blank cell as you need, see screenshots:Īfter installing Kutools for Excel, please do as the following steps:ġ. Function SumIntervalRows(WorkRng As Range, interval As Integer) As Doubleįor i = interval To UBound(arr, 1) Step intervalįunction SumIntervalCols(WorkRng As Range, interval As Integer) As Doubleįor j = interval To UBound(arr, 2) Step intervalģ.
#Excel 2016 for mac greying every other line code
Click Insert > Module, and paste the following code in the Module window. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.Ģ. The following user defined function also can help you to add every other or nth cell in Excel.ġ. If you want to sum every other column, you can input the following formula: =SUMPRODUCT((MOD(COLUMN($A$1:$O$1),3)=0)*($A$1:$O$1)). In the above formula, you can change the number 3 to 4, 5, 6…, it means sum every 4th row, every 5th row, every 6th row…Ģ. And then press Enter key, and every 3rd cell has been added. Here is another formula can help you to sum every other or nth cell in a worksheet. Use the formulas to sum every other row or column If you want to sum every other column, you can input the following formula: =SUM(IF(MOD(COLUMN($A$1:$O$1),2)=0,$A$1:$O$1,0)), and press Ctrl + Shift + Enter keys to get the result. In the above array formula, you can change the number 2 to 3, 4, 5…, it means sum every 3rd row, every 4th row, every 5th row…Ģ. In a blank cell, please enter this formula: =SUM(IF(MOD(ROW($B$1:$B$15),2)=0,$B$1:$B$15,0)), then press Ctrl + Shift + Enter keys, and every other cell values in the column B have been summed. Use the array formulas to sum every other row or column
#Excel 2016 for mac greying every other line how to
Through the following example, I will show you how to apply the formulas that sum every other cell.ġ. Sum / average / count every other or nth row/column with Kutools for Excel Sum every other or nth row/column with User Defined Function Sum every other or nth row/column with Formulas In this situation, how could we sum every other or nth row / column in Excel?

How to quickly sum every other or nth row/column in Excel?Īs we all know, we can apply the Sum function to add a list of cells, but sometimes we need to sum every other cell for some purpose, and Excel has no standard function allow us to sum every nth cell.
