ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need help with formulas (https://www.excelbanter.com/excel-worksheet-functions/192219-need-help-formulas.html)

Eric

Need help with formulas
 
I am trying to get sum in G9 using G3 x D3 + G5 x D5 + G7 x D7. Can somebody
help?

Max

Need help with formulas
 
"Eric" wrote:
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)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Max

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

(no need for the preceding: "--")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Rick Rothstein \(MVP - VB\)[_736_]

Need help with formulas
 
Well, there is always this way...

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

Rick


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



Eric

Need help with formulas
 
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.

"Max" wrote:

"Eric" wrote:
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)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Max

Need help with formulas
 
Eric,
Suggest you put in a fresh new posting for your new query
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com