Need help with formulas

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I am trying to get sum in G9 using G3 x D3 + G5 x D5 + G7 x D7. Can somebody
help?
 
Eric said:
I am trying to get sum in G9 using G3 x D3 + G5 x D5 + G7 x D7.

One of these options in G9 should do it:
1. Simplest: =SUM(G3*D3,G5*D5,G7*D7)
2. If intervening cells are blank: =SUMPRODUCT(D3:D7,G3:G7)
3. If intervening cells need to be skipped:
=SUMPRODUCT(--(MOD(ROW(D3:D7),2)=1)*D3:D7*G3:G7)

---
 
The 3rd option should read simply as:
=SUMPRODUCT((MOD(ROW(D3:D7),2)=1)*D3:D7*G3:G7)

(no need for the preceding: "--")

---
 
Well, there is always this way...

=G3*D3+G5*D5+G7*D7

Rick
 
Thanks Max. I actually figured it out just before your reply came through; I
did it with the first option you listed.

I have a much harder one I am trying to figure out now. I have figured out
the formula to get the sum from 31 sheets on to a summary
sheet at the end of the Excel book; EX: =SUM(1:31!J3:J8). However, I now need
to know how to do it with an exception. Ex: I need =SUM(1:31!P3:P8) BUT ONLY
IF THE FIGURES IN P3:P8 ARE POSITIVE.
Then I need, for another cell, =SUM(1:31!P3:P8) BUT ONLY IF FIGURES IN P3:P8
ARE NEGATIVE.
 

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

Back
Top