Sumif

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

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
 
=SUM(IF(MOD(COLUMN(H1:IV1),2)=0,H1:IV1))
Array formula, to be validated wit Ctrl+Shift+Enter, not just Enter

HTH
 
Hi!

Try this:

Sums every other cell starting from H1 to IV1.

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

Biff
 
Ardus

Thanks, that works great!

Dave

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

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top