Iv'e given up, need help!

coban

New Member
Joined
Oct 25, 2010
Messages
25
So i have made this matrix (filename BBC_2.xls):

<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <table class="MsoNormalTable" style="width: 310pt; margin-left: 2.95pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="413"> <tbody><tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
(a)13.07.2011
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
(b)14.07.2011
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
(c)15.07.2011
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap"> (1)KTDC439
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap"> (2)DSCSTARTKIT
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap"> (3)M8706GA
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap"> (4)SLRSTARTKIT
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 98pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="131" nowrap="nowrap"> (5)HAMA86452
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> <td style="width: 53pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="71" nowrap="nowrap">
</td> </tr> </tbody></table>
and then i have a corresponding file that i get from my economy dept. which looks like this (filename BBC_1.xls):

<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <table class="MsoNormalTable" style="width: 198.9pt; margin-left: 2.95pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="265"> <tbody><tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (c)Item
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
(h)Qty
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
(v)Date
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (1)KTDC439
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
20​
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
13.07.2011
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (2)DSCSTARTKIT
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
20​
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
14.07.2011
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (3)M8706GA
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
20​
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
15.07.2011
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (4)KTDC439
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
20​
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
13.07.2011
</td> </tr> <tr style="height: 12.75pt;"> <td style="width: 68.9pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="92" nowrap="nowrap"> (5)KTDC439
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
20​
</td> <td style="width: 65pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" width="87" nowrap="nowrap">
14.07.2011
</td> </tr> </tbody></table>
I cant figure out the correct formula to summarize the matrix, i want to summarize based on productcode and date, the matrix should show that i get 40 units of KTDC439 on the 13.07.2011 and 20 on the 14.07.2011.

Any help is greatly appreciated!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
See the arrangement below:
Sheet1

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 88px"><COL style="WIDTH: 71px"><COL style="WIDTH: 71px"><COL style="WIDTH: 71px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 71px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD> </TD><TD>13.07.2011</TD><TD>14.07.2011</TD><TD>15.07.2011</TD><TD>Item</TD><TD>Quntity</TD><TD>Date</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD>KTDC439</TD><TD style="TEXT-ALIGN: right">40</TD><TD style="TEXT-ALIGN: right">20</TD><TD style="TEXT-ALIGN: right">0</TD><TD>KTDC439</TD><TD style="TEXT-ALIGN: right">20</TD><TD>13.07.2011</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD>DSCSTARTKIT</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">20</TD><TD style="TEXT-ALIGN: right">0</TD><TD>DSCSTARTKIT</TD><TD style="TEXT-ALIGN: right">20</TD><TD>14.07.2011</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD>M8706GA</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">20</TD><TD>M8706GA</TD><TD style="TEXT-ALIGN: right">20</TD><TD>15.07.2011</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD>SLRSTARTKIT</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">0</TD><TD>KTDC439</TD><TD style="TEXT-ALIGN: right">20</TD><TD>13.07.2011</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD>HAMA86452</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">0</TD><TD style="TEXT-ALIGN: right">0</TD><TD>KTDC439</TD><TD style="TEXT-ALIGN: right">20</TD><TD>14.07.2011</TD></TR></TBODY></TABLE>


<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>B2</TD><TD>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=B$1),$F$2:$F$6)</TD></TR><TR><TD>C2</TD><TD>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=C$1),$F$2:$F$6)</TD></TR><TR><TD>D2</TD><TD>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=D$1),$F$2:$F$6)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
The formula entered is in Cell B2:D6.
 
Upvote 0
See the arrangement below:
Sheet1

<table style="background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt; font-family: Calibri,Arial; font-size: 11pt;" border="1" cellpadding="0" cellspacing="0"><colgroup></colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 88px;"><col style="width: 71px;"><col style="width: 71px;"><col style="width: 71px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 71px;"><tbody><tr style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt; font-weight: bold;"><td>
</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">1</td><td>
</td><td>13.07.2011</td><td>14.07.2011</td><td>15.07.2011</td><td>Item</td><td>Quntity</td><td>Date</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">2</td><td>KTDC439</td><td style="text-align: right;">40</td><td style="text-align: right;">20</td><td style="text-align: right;">0</td><td>KTDC439</td><td style="text-align: right;">20</td><td>13.07.2011</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">3</td><td>DSCSTARTKIT</td><td style="text-align: right;">0</td><td style="text-align: right;">20</td><td style="text-align: right;">0</td><td>DSCSTARTKIT</td><td style="text-align: right;">20</td><td>14.07.2011</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">4</td><td>M8706GA</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td style="text-align: right;">20</td><td>M8706GA</td><td style="text-align: right;">20</td><td>15.07.2011</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">5</td><td>SLRSTARTKIT</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td>KTDC439</td><td style="text-align: right;">20</td><td>13.07.2011</td></tr><tr style="height: 18px;"><td style="text-align: center; background-color: rgb(202, 202, 202); font-size: 8pt;">6</td><td>HAMA86452</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td>KTDC439</td><td style="text-align: right;">20</td><td>14.07.2011</td></tr></tbody></table>


<table style="border-style: groove; border-color: rgb(0, 255, 0); background-color: rgb(255, 252, 249); font-family: Arial; color: rgb(0, 0, 0); font-size: 10pt;"><tbody><tr><td>Spreadsheet Formulas</td></tr><tr><td><table style="font-family: Arial; font-size: 9pt;" border="1" cellpadding="2" cellspacing="0"><tbody><tr style="background-color: rgb(202, 202, 202); font-size: 10pt;"><td>Cell</td><td>Formula</td></tr><tr><td>B2</td><td>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=B$1),$F$2:$F$6)</td></tr><tr><td>C2</td><td>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=C$1),$F$2:$F$6)</td></tr><tr><td>D2</td><td>=SUMPRODUCT(--($E$2:$E$6=$A2),--($G$2:$G$6=D$1),$F$2:$F$6)</td></tr></tbody></table></td></tr></tbody></table>
The formula entered is in Cell B2:D6.

The forumala you entered does not work, i tried the following - which didnt work as well:

=sumproduct(--('[BBC_1.xls]Stock intake Input'!$C:$C=$A2),--('[BBC_1.xls]Stock intake Input'!$V:$V=$B1),--'[BBC_1.xls]Stock intake Input'!$H:$H)

If you can use the cell values as i describe earlier it would be easier..
 
Upvote 0
You will have to define the ARRAY correctly and they will have to be same sized for SUMPRODUCT to work like:
=SUMPRODUCT(--('[BBC_1.xls]Stock intake Input'!$C2:$C6=A2),--('[BBC_1.xls]Stock intake Input'!$V2:$V6=B1),'[BBC_1.xls]Stock intake Input'!$H2:$H6)
 
Upvote 0
You will have to define the ARRAY correctly and they will have to be same sized for SUMPRODUCT to work like:
=SUMPRODUCT(--('[BBC_1.xls]Stock intake Input'!$C2:$C6=A2),--('[BBC_1.xls]Stock intake Input'!$V2:$V6=B1),'[BBC_1.xls]Stock intake Input'!$H2:$H6)

That and i have to use ; instead.

TY!
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top