Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gma gma is offline
external usenet poster
 
Posts: 45
Default adding every other column

i need a formula in cell A1 to total cell C1 and everyother column after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column after
that i.e. F1,H1 ect
how do i do that?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default adding every other column

=SUMPRODUCT(MOD(COLUMN(C1:S1),2),C1:S1) in A1
=SUMPRODUCT(MOD(COLUMN(D1:T1)-1,2),D1:T1) in B1

Adjust the ranges to suit.
--
David Biddulph

"gma" wrote in message
...
i need a formula in cell A1 to total cell C1 and everyother column after
that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column after
that i.e. F1,H1 ect
how do i do that?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default adding every other column

I'm on a new computer now; Office not installed yet so I can't try this and
show you how it works, but I assume you can see the samples here and replace
the 'Row' with 'Column':
http://www.mrexcel.com/td0066.html

Or, look he
http://www.mcgimpsey.com/excel/formu...meverynth.html

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column after
that i.e. F1,H1 ect
how do i do that?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default adding every other column

hi
you are wanting to sum everyother column ie even numberd column and odd
numbered columns. your columns may have letters but excel can display them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column after
that i.e. F1,H1 ect
how do i do that?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gma gma is offline
external usenet poster
 
Posts: 45
Default adding every other column

leave it up to me to screw up the question....the formula you gave me works
great but instead of me needing to add every other column, i need the formula
to add every third column. how do i do that?

"FSt1" wrote:

hi
you are wanting to sum everyother column ie even numberd column and odd
numbered columns. your columns may have letters but excel can display them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column after
that i.e. F1,H1 ect
how do i do that?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default adding every other column

Try this...

=SUMPRODUCT((MOD(COLUMN(C1:M1),3)=0)*(C1:M1))

Adjust the M1's to whatever column is your maximum anticipated one to be
used.

--
Rick (MVP - Excel)


"gma" wrote in message
...
leave it up to me to screw up the question....the formula you gave me
works
great but instead of me needing to add every other column, i need the
formula
to add every third column. how do i do that?

"FSt1" wrote:

hi
you are wanting to sum everyother column ie even numberd column and odd
numbered columns. your columns may have letters but excel can display
them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column
after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column
after
that i.e. F1,H1 ect
how do i do that?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default adding every other column

To sum every 3rd cell starting from cell C1: (C1,F1,I1,L1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(C1:T1)-COLUMN(C1),3)=0),C1:T1)

To sum every 3rd cell starting from cell D1: (D1,G1,J1,M1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(D1:T1)-COLUMN(D1),3)=0),D1:T1)

In each formula adjust for the correct end of range T1.

Caveat: inserting new columns *within* the referenced range will cause the
formulas to calculate the incorrect cell interval.

--
Biff
Microsoft Excel MVP


"gma" wrote in message
...
leave it up to me to screw up the question....the formula you gave me
works
great but instead of me needing to add every other column, i need the
formula
to add every third column. how do i do that?

"FSt1" wrote:

hi
you are wanting to sum everyother column ie even numberd column and odd
numbered columns. your columns may have letters but excel can display
them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column
after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column
after
that i.e. F1,H1 ect
how do i do that?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gma gma is offline
external usenet poster
 
Posts: 45
Default adding every other column

super...thanks!!!!

"T. Valko" wrote:

To sum every 3rd cell starting from cell C1: (C1,F1,I1,L1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(C1:T1)-COLUMN(C1),3)=0),C1:T1)

To sum every 3rd cell starting from cell D1: (D1,G1,J1,M1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(D1:T1)-COLUMN(D1),3)=0),D1:T1)

In each formula adjust for the correct end of range T1.

Caveat: inserting new columns *within* the referenced range will cause the
formulas to calculate the incorrect cell interval.

--
Biff
Microsoft Excel MVP


"gma" wrote in message
...
leave it up to me to screw up the question....the formula you gave me
works
great but instead of me needing to add every other column, i need the
formula
to add every third column. how do i do that?

"FSt1" wrote:

hi
you are wanting to sum everyother column ie even numberd column and odd
numbered columns. your columns may have letters but excel can display
them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column
after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column
after
that i.e. F1,H1 ect
how do i do that?



.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default adding every other column

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"gma" wrote in message
...
super...thanks!!!!

"T. Valko" wrote:

To sum every 3rd cell starting from cell C1: (C1,F1,I1,L1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(C1:T1)-COLUMN(C1),3)=0),C1:T1)

To sum every 3rd cell starting from cell D1: (D1,G1,J1,M1,etc.)

=SUMPRODUCT(--(MOD(COLUMN(D1:T1)-COLUMN(D1),3)=0),D1:T1)

In each formula adjust for the correct end of range T1.

Caveat: inserting new columns *within* the referenced range will cause
the
formulas to calculate the incorrect cell interval.

--
Biff
Microsoft Excel MVP


"gma" wrote in message
...
leave it up to me to screw up the question....the formula you gave me
works
great but instead of me needing to add every other column, i need the
formula
to add every third column. how do i do that?

"FSt1" wrote:

hi
you are wanting to sum everyother column ie even numberd column and
odd
numbered columns. your columns may have letters but excel can display
them as
numbered columns. A,C,E,G etc are odd. B,D,F,H are even.
toolsoptionsgeneral tabcheck R1C1 reference style to see what i
mean.
to sum odd columns, in A1 use this fomula.....
=SUMPRODUCT((MOD(COLUMN(C1:M1),2)=1)*(C1:M1))
adjust ranges to suit your data.
to sum even columns, in B1 use this formula.....
=SUMPRODUCT((MOD(COLUMN(D1:M1),2)=0)*(D1:M1))

regards
FSt1

"gma" wrote:

i need a formula in cell A1 to total cell C1 and everyother column
after that
i.e. E1,G1 ect
i need a formula in cell B1 to total cell D1 and everyother column
after
that i.e. F1,H1 ect
how do i do that?



.



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
Removing one column of data and adding another column Rodders Excel Discussion (Misc queries) 1 August 26th 09 08:25 AM
Column Chart - Adding text in the column in Excel 2007 Jennifer Charts and Charting in Excel 2 July 26th 08 02:58 PM
Excel 2000: Adding column D based on value in column A al Excel Worksheet Functions 6 April 10th 08 02:22 AM
Adding a Custom Column based on an existing Column (EXPERT) Sean W. Excel Worksheet Functions 4 January 16th 08 04:24 PM
adding numbers from column B, while condition on column A The Fool on the Hill Excel Discussion (Misc queries) 4 February 1st 07 01:34 PM


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