Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEV JEV is offline
external usenet poster
 
Posts: 9
Default SUMPRODUCT FORMULA EXCEL 2003

In columns, I have a letter code (example "S" ) with a number across from it
in the next column. (each pair of columns is titled TYP and HRS) I want to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below, substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another approach?
Appreciate your guidance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default SUMPRODUCT FORMULA EXCEL 2003

On Fri, 23 Jan 2009 12:31:01 -0800, JEV
wrote:

In columns, I have a letter code (example "S" ) with a number across from it
in the next column. (each pair of columns is titled TYP and HRS) I want to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below, substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another approach?
Appreciate your guidance.



Try this modfied formula:

=SUMPRODUCT((C6:C42="S")*(D6:D42))

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT FORMULA EXCEL 2003

=SUMPRODUCT((MOD(COLUMN(C6:DQ42),2)=1)*(C6:DQ42="S "),(D6:DR42))

--
__________________________________
HTH

Bob

"JEV" wrote in message
...
In columns, I have a letter code (example "S" ) with a number across from
it
in the next column. (each pair of columns is titled TYP and HRS) I want to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below,
substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another
approach?
Appreciate your guidance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default SUMPRODUCT FORMULA EXCEL 2003

On Fri, 23 Jan 2009 20:50:56 GMT, Lars-Åke Aspelin
wrote:

On Fri, 23 Jan 2009 12:31:01 -0800, JEV
wrote:

In columns, I have a letter code (example "S" ) with a number across from it
in the next column. (each pair of columns is titled TYP and HRS) I want to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below, substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another approach?
Appreciate your guidance.



Try this modfied formula:

=SUMPRODUCT((C6:C42="S")*(D6:D42))

Hope this helps / Lars-Åke


Sorry, disregard my post. I misunderstood what you tried to
accomplish.

Lars-Åke
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEV JEV is offline
external usenet poster
 
Posts: 9
Default SUMPRODUCT FORMULA EXCEL 2003

Thanks, Bob.
Can I trouble you to step me through this one. Having trouble following.

"Bob Phillips" wrote:

=SUMPRODUCT((MOD(COLUMN(C6:DQ42),2)=1)*(C6:DQ42="S "),(D6:DR42))

--
__________________________________
HTH

Bob

"JEV" wrote in message
...
In columns, I have a letter code (example "S" ) with a number across from
it
in the next column. (each pair of columns is titled TYP and HRS) I want to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below,
substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another
approach?
Appreciate your guidance.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT FORMULA EXCEL 2003

Basically, it checks every other cell in C6:D42 for the value S, and picks
up the next cell value if true, and sums them.

--
__________________________________
HTH

Bob

"JEV" wrote in message
...
Thanks, Bob.
Can I trouble you to step me through this one. Having trouble following.

"Bob Phillips" wrote:

=SUMPRODUCT((MOD(COLUMN(C6:DQ42),2)=1)*(C6:DQ42="S "),(D6:DR42))

--
__________________________________
HTH

Bob

"JEV" wrote in message
...
In columns, I have a letter code (example "S" ) with a number across
from
it
in the next column. (each pair of columns is titled TYP and HRS) I want
to
sum all the numbers associated with a specific code. I have 60 pairs of
columns.
In a single formula, I'm trying to add 60 of the formula below,
substituting
the letters of the next 2 columns (i.e E & F, G & H...)
=SUMPRODUCT((C6:C42={S})*D6:D42)
Getting "formula too long" error. Can I get around this with another
approach?
Appreciate your guidance.






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
excel formula sumproduct and age ranges Tina Excel Discussion (Misc queries) 3 July 31st 08 01:07 PM
A single SUMPRODUCT Excel formula cover four worksheets wilchong via OfficeKB.com New Users to Excel 4 May 18th 08 05:53 AM
Excel 2003 Multi Worksheet Sumproduct? wild turkey no9 Excel Worksheet Functions 4 May 17th 08 06:10 PM
Multi Worksheet Sumproduct Excel 2003 wild turkey no9 Excel Discussion (Misc queries) 4 May 17th 08 03:51 PM
XL 2003 & Sumproduct Question Kevin H. Stecyk Excel Discussion (Misc queries) 4 May 25th 06 01:59 AM


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