SUMPRODUCT FORMULA EXCEL 2003

J

JEV

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.
 
L

Lars-Åke Aspelin

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
 
L

Lars-Åke Aspelin

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
 
B

Bob Phillips

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top