Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default adding alternate columns

hi experts, i need to sum the data in the alternate columns. how would i do
it...like column BL should display sum of columns B, D, F, H, J .... and
Column BM should display sum of C, E, G, I, K ....

can you please help me...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default adding alternate columns

for B, D, F ...
BL2: =SUM(IF(MOD(COLUMN($B2:$BK2),2)=0,$B2:$BK2))

for C, E, G . . .
BM2: =SUM(IF(MOD(COLUMN($B2:$BK2),2)=1,$B2:$BK2))

each should be entered with Ctrl+Shift+enter rather than just enter since
these are array formulas.

then select BL2:BM2 and drag fill down the column.
--
Regards,
Tom Ogilvy


"Mir Khan" wrote in message
...
hi experts, i need to sum the data in the alternate columns. how would i
do
it...like column BL should display sum of columns B, D, F, H, J .... and
Column BM should display sum of C, E, G, I, K ....

can you please help me...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default adding alternate columns

=SUMPRODUCT(--(MOD(COLUMN($B2:$BK2),2)=0),$B2:$BK2)

and

=SUMPRODUCT(--(MOD(COLUMN($B2:$BK2),2)=1),$B2:$BK2)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Mir Khan" wrote in message
...
hi experts, i need to sum the data in the alternate columns. how would i
do
it...like column BL should display sum of columns B, D, F, H, J .... and
Column BM should display sum of C, E, G, I, K ....

can you please help me...



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
SUM alternate columns Danish Ayub[_2_] Excel Discussion (Misc queries) 5 November 20th 08 04:42 PM
print 4 alternate columns tikchye_oldLearner57 New Users to Excel 1 March 31st 06 03:48 PM
Adding alternate columns LACA Excel Discussion (Misc queries) 3 January 14th 06 04:45 AM
Alternate shading based on series of numbers in 3 columns Ozbobeee[_2_] Excel Programming 6 September 20th 05 07:34 AM
Sum alternate columns over a large (>100) range Kanga 85 Excel Discussion (Misc queries) 11 December 26th 04 04:32 AM


All times are GMT +1. The time now is 10:07 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"