View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default SUM Every Trird Cell In A Row

=SUM(B2:CC2)
get the sum from every third cell?


So, every 3rd cell would be B2, E2, H2, K2, etc?

If you will *never* insert new columns in front of the range:

=SUMPRODUCT(--(MOD(COLUMN(B2:CC2),3)=2),B2:CC2)

If you might insert new columns in front of the range:

=SUMPRODUCT(--(MOD(COLUMN(B2:CC2)-COLUMN(B2),3)=0),B2:CC2)


--
Biff
Microsoft Excel MVP


"Minitman" wrote in message
...
Greetings,

I have a series of rows that I sum up in the first column. I did have
them staggered so that I could just use =SUM(B2:CC2) in the first row
and copy it down to the other two rows. Simple.

But when I tried to collect the same data after compressing the bottom
2 row into the 1st row (where there was just blank space) I realized I
haven't a clue as to how that is done!

Anyone have any ideas as to how to get the sum from every third cell?

Any assistance on this question will be greatly appreciated.

-Minitman