Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sum of every other two columns

Hi I have data in columns A through DU. I'm looking for a formula that will
add every other two columns example.

sum(A1,B1,E1,F1,I1,J1)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default sum of every other two columns

You can try using Sum Product to do this.

A quick and dirty way would be to add a row to the top of your sheet.

In row 1, put 1, 0, 1, 0, 1, 0..... in each of the columns

The in your sumproduct formula, you would say:
=sumproduct(A2:DU2,$a$1:$DU$1)

This formula will add each column that has a 1 in row 1.


On Oct 3, 4:44*pm, sem_lady
wrote:
Hi *I have data in columns A through DU. I'm looking for a formula that will
add every other two columns example.

sum(A1,B1,E1,F1,I1,J1)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default sum of every other two columns

One way

=SUMPRODUCT((MOD(COLUMN(A1:J1),4)={1;2})*(A1:J1))

--


Regards,


Peo Sjoblom

"sem_lady" wrote in message
...
Hi I have data in columns A through DU. I'm looking for a formula that
will
add every other two columns example.

sum(A1,B1,E1,F1,I1,J1)



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default sum of every other two columns

Try...

=SUM(IF(ISNUMBER(MATCH(MOD(COLUMN(A1:DU1)-COLUMN(A1),4)+1,{1,2},0)),A1:DU
1))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
sem_lady wrote:

Hi I have data in columns A through DU. I'm looking for a formula that will
add every other two columns example.

sum(A1,B1,E1,F1,I1,J1)

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
putting 2 long columns into multiple columns in excel page and sor bob_mhc Excel Discussion (Misc queries) 1 April 25th 08 07:51 AM
to convert columns to rows having mulit independent group columns Quacy Excel Worksheet Functions 1 August 22nd 06 11:20 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 2 July 31st 06 09:45 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 0 July 31st 06 05:07 PM
Pivot Table Creating New Columns that Subtract Two Existing Columns den4673 Excel Discussion (Misc queries) 3 December 17th 04 01:31 PM


All times are GMT +1. The time now is 07:36 PM.

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

About Us

"It's about Microsoft Excel"