SUMIF - - but I need more ...

dcavaiani

New Member
Joined
Mar 21, 2014
Messages
16
CalcTypeExpRatioHolding%FundCostMixed
$36,233equity0.69%9.35%$250
$29,026mixed0.60%7.49%$1740.38
$41,933fixed0.97%10.82%$407
$32,045equity0.77%8.27%$247
$9,934mixed0.63%2.56%$630.51
$8,761equity1.31%2.26%$115
$7,429mixed1.04%1.92%$770.29
$42,075equity0.90%10.86%$379
$19,146equity1.13%4.94%$216
$22,023equity0.96%5.68%$211
$14,574fixed0.93%3.76%$136
$28,024equity0.62%7.23%$174
$24,800mixed0.56%6.40%$1390.24
$12,119fixed0.62%3.13%$75
$36,001equity0.75%9.29%$270
$9,527equity1.07%2.46%$102
$0fixed0.99%0.00%$0
$13,764equity1.38%3.55%$190

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Given the above data, I want to ADD UP (and place in a new cell): IF "Type" = "mixed", Then I want to multiply the ratio in the "mixed" column Times the amount in the Calc column.
 

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
Try

=SUMPRODUCT(($B$3:$B$21="mixed")*($A$3:$A$21)*($F$3:$F$21))
 
Last edited:

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,161
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
is that what you're after?

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Calc</td><td style=";">Type</td><td style=";">ExpRatio</td><td style=";">Holding%</td><td style=";">FundCost</td><td style=";">Mixed</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style="text-align: right;;">$36,233</td><td style=";">equity</td><td style="text-align: right;;">0.69%</td><td style="text-align: right;;">9.35%</td><td style="text-align: right;;">250</td><td style="text-align: right;;"></td><td style="text-align: right;background-color: #E2EFDA;;">$24,203</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-align: right;;">$29,026</td><td style=";">mixed</td><td style="text-align: right;;">0.60%</td><td style="text-align: right;;">7.49%</td><td style="text-align: right;;">174</td><td style="text-align: right;;">0.38</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">$41,933</td><td style=";">fixed</td><td style="text-align: right;;">0.97%</td><td style="text-align: right;;">10.82%</td><td style="text-align: right;;">407</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;">$32,045</td><td style=";">equity</td><td style="text-align: right;;">0.77%</td><td style="text-align: right;;">8.27%</td><td style="text-align: right;;">247</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;">$9,934</td><td style=";">mixed</td><td style="text-align: right;;">0.63%</td><td style="text-align: right;;">2.56%</td><td style="text-align: right;;">63</td><td style="text-align: right;;">0.51</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;">$8,761</td><td style=";">equity</td><td style="text-align: right;;">1.31%</td><td style="text-align: right;;">2.26%</td><td style="text-align: right;;">115</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style="text-align: right;;">$7,429</td><td style=";">mixed</td><td style="text-align: right;;">1.04%</td><td style="text-align: right;;">1.92%</td><td style="text-align: right;;">77</td><td style="text-align: right;;">0.29</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">9</td><td style="text-align: right;;">$42,075</td><td style=";">equity</td><td style="text-align: right;;">0.90%</td><td style="text-align: right;;">10.86%</td><td style="text-align: right;;">379</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">10</td><td style="text-align: right;;">$19,146</td><td style=";">equity</td><td style="text-align: right;;">1.13%</td><td style="text-align: right;;">4.94%</td><td style="text-align: right;;">216</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">11</td><td style="text-align: right;;">$22,023</td><td style=";">equity</td><td style="text-align: right;;">0.96%</td><td style="text-align: right;;">5.68%</td><td style="text-align: right;;">211</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">12</td><td style="text-align: right;;">$14,574</td><td style=";">fixed</td><td style="text-align: right;;">0.93%</td><td style="text-align: right;;">3.76%</td><td style="text-align: right;;">136</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">13</td><td style="text-align: right;;">$28,024</td><td style=";">equity</td><td style="text-align: right;;">0.62%</td><td style="text-align: right;;">7.23%</td><td style="text-align: right;;">174</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">14</td><td style="text-align: right;;">$24,800</td><td style=";">mixed</td><td style="text-align: right;;">0.56%</td><td style="text-align: right;;">6.40%</td><td style="text-align: right;;">139</td><td style="text-align: right;;">0.24</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">15</td><td style="text-align: right;;">$12,119</td><td style=";">fixed</td><td style="text-align: right;;">0.62%</td><td style="text-align: right;;">3.13%</td><td style="text-align: right;;">75</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">16</td><td style="text-align: right;;">$36,001</td><td style=";">equity</td><td style="text-align: right;;">0.75%</td><td style="text-align: right;;">9.29%</td><td style="text-align: right;;">270</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">17</td><td style="text-align: right;;">$9,527</td><td style=";">equity</td><td style="text-align: right;;">1.07%</td><td style="text-align: right;;">2.46%</td><td style="text-align: right;;">102</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">18</td><td style="text-align: right;;">$0</td><td style=";">fixed</td><td style="text-align: right;;">0.99%</td><td style="text-align: right;;">0.00%</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">19</td><td style="text-align: right;;">$13,764</td><td style=";">equity</td><td style="text-align: right;;">1.38%</td><td style="text-align: right;;">3.55%</td><td style="text-align: right;;">190</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">A2:A19,F2:F19</font>)</td></tr></tbody></table></td></tr></table><br />
 

dcavaiani

New Member
Joined
Mar 21, 2014
Messages
16
is that what you're after?

ABCDEFG
1CalcTypeExpRatioHolding%FundCostMixed
2$36,233equity0.69%9.35%250$24,203
3$29,026mixed0.60%7.49%1740.38
4$41,933fixed0.97%10.82%407
5$32,045equity0.77%8.27%247
6$9,934mixed0.63%2.56%630.51
7$8,761equity1.31%2.26%115
8$7,429mixed1.04%1.92%770.29
9$42,075equity0.90%10.86%379
10$19,146equity1.13%4.94%216
11$22,023equity0.96%5.68%211
12$14,574fixed0.93%3.76%136
13$28,024equity0.62%7.23%174
14$24,800mixed0.56%6.40%1390.24
15$12,119fixed0.62%3.13%75
16$36,001equity0.75%9.29%270
17$9,527equity1.07%2.46%102
18$0fixed0.99%0.00%0
19$13,764equity1.38%3.55%190

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
G2=SUMPRODUCT(A2:A19,F2:F19)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Awesome - you have actually simplified it too. Sometimes we just think too hard ;)
 

Watch MrExcel Video

Forum statistics

Threads
1,108,860
Messages
5,525,249
Members
409,638
Latest member
CLE81

This Week's Hot Topics

Top