Hello again guys.
I have this array formula that works but it kills my excel for quite a while, I wanted to know if any of you guys can help making it faster.
First I have a matrix like this (It's for a construction, I know that A is 15% of the total cost and in the matrix it tells me the date where it's gonna be done.
So for the first item in row 3 I'm gonna spend in december 26 (40533*15%)+(40533*7,44%) = 9096,09)
<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">
</td><td style="text-align: right;;">15,00%</td><td style="text-align: right;;">7,44%</td><td style="text-align: right;;">7,54%</td><td style="text-align: right;;">9,12%</td><td style="text-align: right;;">15,35%</td><td style="text-align: right;;">11,19%</td><td style="text-align: right;;">4,11%</td><td style="text-align: right;;">13,73%</td><td style="text-align: right;;">10,72%</td><td style="text-align: right;;">5,80%</td></tr><tr><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;text-align: right;;">Cost</td><td style="font-weight: bold;text-align: right;;">A</td><td style="font-weight: bold;text-align: right;;">B</td><td style="font-weight: bold;text-align: right;;">C</td><td style="font-weight: bold;text-align: right;;">D</td><td style="font-weight: bold;text-align: right;;">E</td><td style="font-weight: bold;text-align: right;;">F</td><td style="font-weight: bold;text-align: right;;">G</td><td style="font-weight: bold;text-align: right;;">H</td><td style="font-weight: bold;text-align: right;;">I</td><td style="font-weight: bold;text-align: right;;">J</td></tr><tr><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">40.533 </td><td style="text-align: center;color: #FF0000;;">26-Dec-11</td><td style="text-align: center;color: #FF0000;;">26-Dec-11</td><td style="text-align: center;color: #FF0000;;">9-Jan-12</td><td style="text-align: center;color: #FF0000;;">16-Jan-12</td><td style="text-align: center;color: #FF0000;;">23-Jan-12</td><td style="text-align: center;color: #FF0000;;">30-Jan-12</td><td style="text-align: center;color: #FF0000;;">6-Feb-12</td><td style="text-align: center;color: #FF0000;;">13-Feb-12</td><td style="text-align: center;color: #FF0000;;">13-Feb-12</td><td style="text-align: center;color: #FF0000;;">20-Feb-12</td></tr><tr><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">1.250 </td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: center;color: #FF0000;;">18-Apr-11</td><td style="text-align: center;color: #FF0000;;">25-Apr-11</td><td style="text-align: center;color: #FF0000;;">2-May-11</td><td style="text-align: center;color: #FF0000;;">9-May-11</td><td style="text-align: center;color: #FF0000;;">16-May-11</td><td style="text-align: center;color: #FF0000;;">23-May-11</td><td style="text-align: center;color: #FF0000;;">23-May-11</td><td style="text-align: center;color: #FF0000;;">30-May-11</td></tr><tr><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">31.961 </td><td style="text-align: center;color: #FF0000;;">26-Sep-11</td><td style="text-align: center;color: #FF0000;;">26-Sep-11</td><td style="text-align: center;color: #FF0000;;">10-Oct-11</td><td style="text-align: center;color: #FF0000;;">17-Oct-11</td><td style="text-align: center;color: #FF0000;;">24-Oct-11</td><td style="text-align: center;color: #FF0000;;">31-Oct-11</td><td style="text-align: center;color: #FF0000;;">7-Nov-11</td><td style="text-align: center;color: #FF0000;;">14-Nov-11</td><td style="text-align: center;color: #FF0000;;">14-Nov-11</td><td style="text-align: center;color: #FF0000;;">21-Nov-11</td></tr></tbody></table>
So I want to have in another sheet a matrix like this:
That shows me how much I have to pay in the dates from column A depending on the cost and then percentage of each concept (a,b,c)
<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">
</td><td style="text-align: right;;">15,00%</td><td style="text-align: right;;">7,44%</td><td style="text-align: right;;">7,54%</td><td style="text-align: right;;">9,12%</td><td style="text-align: right;;">15,35%</td><td style="text-align: right;;">11,19%</td><td style="text-align: right;;">4,11%</td><td style="text-align: right;;">13,73%</td><td style="text-align: right;;">10,72%</td><td style="text-align: right;;">5,80%</td></tr><tr><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">A</td><td style="font-weight: bold;text-align: right;;">B</td><td style="font-weight: bold;text-align: right;;">C</td><td style="font-weight: bold;text-align: right;;">D</td><td style="font-weight: bold;text-align: right;;">E</td><td style="font-weight: bold;text-align: right;;">F</td><td style="font-weight: bold;text-align: right;;">G</td><td style="font-weight: bold;text-align: right;;">H</td><td style="font-weight: bold;text-align: right;;">I</td><td style="font-weight: bold;text-align: right;;">J</td></tr><tr><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: right;;">=Sheet1!A4*B7
</td><td style="text-align: right;;">{=SUM(IF(Sheet1!C:C=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))}</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;color: #FF0000;;">18-Apr-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;color: #FF0000;;">25-Apr-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">12</td><td style="text-align: center;color: #FF0000;;">2-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">13</td><td style="text-align: center;color: #FF0000;;">9-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">14</td><td style="text-align: center;color: #FF0000;;">16-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr></tbody></table>
Right now I can do it, but it's killing the program cause the dates go like that until 2012 so it's a lot of formulas.
{=SUM(IF(Sheet1!B:B=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))} This one gets copied down in sheet 2, in all the dates in column B.
Then this for column C, and so on
{=SUM(IF(Sheet1!C:C=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))}
I have this array formula that works but it kills my excel for quite a while, I wanted to know if any of you guys can help making it faster.
First I have a matrix like this (It's for a construction, I know that A is 15% of the total cost and in the matrix it tells me the date where it's gonna be done.
So for the first item in row 3 I'm gonna spend in december 26 (40533*15%)+(40533*7,44%) = 9096,09)
<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">
</td><td style="text-align: right;;">15,00%</td><td style="text-align: right;;">7,44%</td><td style="text-align: right;;">7,54%</td><td style="text-align: right;;">9,12%</td><td style="text-align: right;;">15,35%</td><td style="text-align: right;;">11,19%</td><td style="text-align: right;;">4,11%</td><td style="text-align: right;;">13,73%</td><td style="text-align: right;;">10,72%</td><td style="text-align: right;;">5,80%</td></tr><tr><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;text-align: right;;">Cost</td><td style="font-weight: bold;text-align: right;;">A</td><td style="font-weight: bold;text-align: right;;">B</td><td style="font-weight: bold;text-align: right;;">C</td><td style="font-weight: bold;text-align: right;;">D</td><td style="font-weight: bold;text-align: right;;">E</td><td style="font-weight: bold;text-align: right;;">F</td><td style="font-weight: bold;text-align: right;;">G</td><td style="font-weight: bold;text-align: right;;">H</td><td style="font-weight: bold;text-align: right;;">I</td><td style="font-weight: bold;text-align: right;;">J</td></tr><tr><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">40.533 </td><td style="text-align: center;color: #FF0000;;">26-Dec-11</td><td style="text-align: center;color: #FF0000;;">26-Dec-11</td><td style="text-align: center;color: #FF0000;;">9-Jan-12</td><td style="text-align: center;color: #FF0000;;">16-Jan-12</td><td style="text-align: center;color: #FF0000;;">23-Jan-12</td><td style="text-align: center;color: #FF0000;;">30-Jan-12</td><td style="text-align: center;color: #FF0000;;">6-Feb-12</td><td style="text-align: center;color: #FF0000;;">13-Feb-12</td><td style="text-align: center;color: #FF0000;;">13-Feb-12</td><td style="text-align: center;color: #FF0000;;">20-Feb-12</td></tr><tr><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">1.250 </td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: center;color: #FF0000;;">18-Apr-11</td><td style="text-align: center;color: #FF0000;;">25-Apr-11</td><td style="text-align: center;color: #FF0000;;">2-May-11</td><td style="text-align: center;color: #FF0000;;">9-May-11</td><td style="text-align: center;color: #FF0000;;">16-May-11</td><td style="text-align: center;color: #FF0000;;">23-May-11</td><td style="text-align: center;color: #FF0000;;">23-May-11</td><td style="text-align: center;color: #FF0000;;">30-May-11</td></tr><tr><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">31.961 </td><td style="text-align: center;color: #FF0000;;">26-Sep-11</td><td style="text-align: center;color: #FF0000;;">26-Sep-11</td><td style="text-align: center;color: #FF0000;;">10-Oct-11</td><td style="text-align: center;color: #FF0000;;">17-Oct-11</td><td style="text-align: center;color: #FF0000;;">24-Oct-11</td><td style="text-align: center;color: #FF0000;;">31-Oct-11</td><td style="text-align: center;color: #FF0000;;">7-Nov-11</td><td style="text-align: center;color: #FF0000;;">14-Nov-11</td><td style="text-align: center;color: #FF0000;;">14-Nov-11</td><td style="text-align: center;color: #FF0000;;">21-Nov-11</td></tr></tbody></table>
So I want to have in another sheet a matrix like this:
That shows me how much I have to pay in the dates from column A depending on the cost and then percentage of each concept (a,b,c)
<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">
</td><td style="text-align: right;;">15,00%</td><td style="text-align: right;;">7,44%</td><td style="text-align: right;;">7,54%</td><td style="text-align: right;;">9,12%</td><td style="text-align: right;;">15,35%</td><td style="text-align: right;;">11,19%</td><td style="text-align: right;;">4,11%</td><td style="text-align: right;;">13,73%</td><td style="text-align: right;;">10,72%</td><td style="text-align: right;;">5,80%</td></tr><tr><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">A</td><td style="font-weight: bold;text-align: right;;">B</td><td style="font-weight: bold;text-align: right;;">C</td><td style="font-weight: bold;text-align: right;;">D</td><td style="font-weight: bold;text-align: right;;">E</td><td style="font-weight: bold;text-align: right;;">F</td><td style="font-weight: bold;text-align: right;;">G</td><td style="font-weight: bold;text-align: right;;">H</td><td style="font-weight: bold;text-align: right;;">I</td><td style="font-weight: bold;text-align: right;;">J</td></tr><tr><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;color: #FF0000;;">4-Apr-11</td><td style="text-align: right;;">=Sheet1!A4*B7
</td><td style="text-align: right;;">{=SUM(IF(Sheet1!C:C=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))}</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;color: #FF0000;;">18-Apr-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;color: #FF0000;;">25-Apr-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: center;color: #FF0000;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">12</td><td style="text-align: center;color: #FF0000;;">2-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">13</td><td style="text-align: center;color: #FF0000;;">9-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr><tr><td style="color: #161120;text-align: center;">14</td><td style="text-align: center;color: #FF0000;;">16-May-11</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td></tr></tbody></table>
Right now I can do it, but it's killing the program cause the dates go like that until 2012 so it's a lot of formulas.
{=SUM(IF(Sheet1!B:B=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))} This one gets copied down in sheet 2, in all the dates in column B.
Then this for column C, and so on
{=SUM(IF(Sheet1!C:C=Sheet2!A132,(Sheet1!$A:$A*Sheet2!B7$1);0))}