PC Review


Reply
Thread Tools Rate Thread

adding alternate columns

 
 
=?Utf-8?B?TWlyIEtoYW4=?=
Guest
Posts: n/a
 
      16th Feb 2007
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 With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      16th Feb 2007
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" <(E-Mail Removed)> wrote in message
news:BC418BAB-3148-469D-84BE-(E-Mail Removed)...
> 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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      16th Feb 2007
=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" <(E-Mail Removed)> wrote in message
news:BC418BAB-3148-469D-84BE-(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUM alternate columns Danish Ayub Microsoft Excel Misc 5 20th Nov 2008 04:42 PM
print 4 alternate columns =?Utf-8?B?dGlrY2h5ZV9vbGRMZWFybmVyNTc=?= Microsoft Excel New Users 1 31st Mar 2006 03:48 PM
Adding alternate columns LACA Microsoft Excel Misc 3 14th Jan 2006 04:45 AM
Look up alternate columns =?Utf-8?B?QWxieQ==?= Microsoft Excel Worksheet Functions 6 7th Feb 2004 11:01 PM
delete alternate columns... Microsoft Excel Worksheet Functions 5 17th Nov 2003 02:39 AM


Features
 

Advertising
 

Newsgroups
 


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