ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif (https://www.excelbanter.com/excel-worksheet-functions/91154-sumif.html)

Dave

Sumif
 
Is there a way to add alternate columns in a row of numbers? I need to add
the value in Column H, J, L, N etc to IV.

Dave



Ardus Petus

Sumif
 
=SUM(IF(MOD(COLUMN(H1:IV1),2)=0,H1:IV1))
Array formula, to be validated wit Ctrl+Shift+Enter, not just Enter

HTH
--
AP

"Dave" a écrit dans le message de
news: ...
Is there a way to add alternate columns in a row of numbers? I need to
add the value in Column H, J, L, N etc to IV.

Dave




Biff

Sumif
 
Hi!

Try this:

Sums every other cell starting from H1 to IV1.

=SUMPRODUCT(--(MOD(COLUMN(H1:IV1)-COLUMN(H1),2)=0),H1:IV1)

Biff

"Dave" wrote in message
...
Is there a way to add alternate columns in a row of numbers? I need to
add the value in Column H, J, L, N etc to IV.

Dave




Dave

Sumif
 
Ardus

Thanks, that works great!

Dave

"Ardus Petus" wrote in message
...
=SUM(IF(MOD(COLUMN(H1:IV1),2)=0,H1:IV1))
Array formula, to be validated wit Ctrl+Shift+Enter, not just Enter

HTH
--
AP

"Dave" a écrit dans le message de
news: ...
Is there a way to add alternate columns in a row of numbers? I need to
add the value in Column H, J, L, N etc to IV.

Dave







All times are GMT +1. The time now is 04:40 PM.

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