ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   SUM Every Other Column (https://www.excelbanter.com/new-users-excel/247610-sum-every-other-column.html)

Tarig

SUM Every Other Column
 
Hi,

Can someone please help me with a formula that sums numbers from every other
column i.e. B1, D1, F1...etc?


--
tarig

Luke M

SUM Every Other Column
 
For row 1:

=SUMPRODUCT(--(MOD(COLUMN(1:1),2)=0),1:1)

Change the range "1:1" to something smaller in both callouts if you desire a
smaller range. If you want the odd columns (A, C, etc) change the "=0" to
"=1".
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tarig" wrote:

Hi,

Can someone please help me with a formula that sums numbers from every other
column i.e. B1, D1, F1...etc?


--
tarig


Bernard Liengme[_3_]

SUM Every Other Column
 
But full column/row reference such as A:A or 1:1 are permit in SUMPRODUCT
only in Excel 2007 and 2010. In earlier versions you would need ranges
=SUMPRODUCT(--(MOD(COLUMN(A1:Z1),2)=0),A1:Z1)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Luke M" wrote in message
...
For row 1:

=SUMPRODUCT(--(MOD(COLUMN(1:1),2)=0),1:1)

Change the range "1:1" to something smaller in both callouts if you desire
a
smaller range. If you want the odd columns (A, C, etc) change the "=0" to
"=1".
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tarig" wrote:

Hi,

Can someone please help me with a formula that sums numbers from every
other
column i.e. B1, D1, F1...etc?


--
tarig





All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com