#1   Report Post  
Steve
 
Posts: n/a
Default Sum skipping columns

In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

=SUMPRODUCT(C9:N9,--(MOD(COLUMN(C9:N9)-2,3)=0))

"Steve" wrote:

In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

Oops-

=SUMPRODUCT(E9:Z9,--(MOD(COLUMN(E9:Z9)-2,3)=0))

"Duke Carey" wrote:

=SUMPRODUCT(C9:N9,--(MOD(COLUMN(C9:N9)-2,3)=0))

"Steve" wrote:

In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?

  #4   Report Post  
Don Guillett
 
Posts: n/a
Default

try this for row 4. correct for word wrap
=SUMPRODUCT((MOD(COLUMN(E4:INDEX(4:4,100))-CELL("Col",E4)+0,3)=0)*(E4:INDEX(
4:4,100)))
--
Don Guillett
SalesAid Software

"Steve" wrote in message
...
In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?



  #5   Report Post  
Steve
 
Posts: n/a
Default

Worked perfectly. Thanks...huge timesaver.

"Duke Carey" wrote:

Oops-

=SUMPRODUCT(E9:Z9,--(MOD(COLUMN(E9:Z9)-2,3)=0))

"Duke Carey" wrote:

=SUMPRODUCT(C9:N9,--(MOD(COLUMN(C9:N9)-2,3)=0))

"Steve" wrote:

In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?



  #7   Report Post  
Junior Member
 
Posts: 1
Exclamation

Quote:
Originally Posted by Duke Carey View Post
=SUMPRODUCT(C9:N9,--(MOD(COLUMN(C9:N9)-2,3)=0))

"Steve" wrote:

In cell DC9 I want to enter a formula that will give me the sum of
E9+H9+K9+N9+...(every third column in row 9). Is this possible without
having to type out =E9+H9+...?

This saved another person after 7 years: Me.

Can anyone tell me why it's -2,3 in the MOD function? I can't figure it out.

I use the formula for column B2 to CZ2. I skip 1 column. (so summarizing B, D, F, H, and so on.) I used -1,2 instead of the -2,3 from the previous posting. But it worked, the results seem to be correct. But only column B2 to E2 have data and i don't know if it will be correct when more data will come. That's why i need to know what the -2,3 stands for in the old example.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Skipping and protected cells Dave Peterson Excel Discussion (Misc queries) 6 January 27th 05 11:35 PM
Auto Skipping and Protecting Worksheet Pank Mehta New Users to Excel 2 January 24th 05 02:01 PM
skipping columns part 2 Wazooli Excel Worksheet Functions 0 January 19th 05 07:41 PM
skipping columns Wazooli Excel Worksheet Functions 2 January 19th 05 05:11 PM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 12:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"