Adding multiple values in index match

AAM985

New Member
Joined
Apr 3, 2018
Messages
2
Good morning,

I'm working on file that will show me the total requirement for a specific part on a specific day. Unfortunately there are multiple line items per part on a day. I need to find a way to return the total value on a specific day.

I started with the below formula, but it only returns the first value.

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #0057d6}span.s2 {color: #006107}span.s3 {color: #ab30d6}span.s4 {color: #a54a29}span.s5 {color: #33af4a}</style>={INDEX($I$3:$I$14,MATCH(1,(A3=$H$3:$H$14)*(B$1=$J$3:$J$14),0))}

I then tried this formula, but it returned a error.
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #006107}span.s2 {color: #0057d6}span.s3 {color: #ab30d6}span.s4 {color: #a54a29}span.s5 {color: #33af4a}</style>
={SUMPRODUCT(--($H$3:$H$14&$J$3:$J$14=$A3&$B$1),INDEX($I$3:$I$14,MATCH(1,(A3=$H$3:$H$14)*(B$1=$J$3:$J$14),0)))}

Can someone help me with this formula, it's driving me crazy?!

<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl63 {border:.5pt solid windowtext;}.xl64 {mso-number-format:"Short Date"; border:.5pt solid windowtext;}.xl65 {color:black; mso-number-format:"Short Date"; border:.5pt solid windowtext;}.xl66 {border:.5pt solid windowtext; background:yellow; mso-pattern:black none;}--></style>
ABCDEFGHIJ
2 04-01-1804-02-1804-03-18
3Partreqreqreq
4F100 #VALUE! F100504-01-18
5F200 F1001904-01-18
6F300 F100404-01-18
7F400 F100104-02-18
8F500 F200304-01-18
9 F2005604-01-18
10 F2006504-02-18
11 F2003404-02-18
12 F3002304-01-18
13 F3001104-01-18
14 F3002204-02-18
15 F3001404-02-18
16

<!--StartFragment--> <colgroup><col width="65" span="11" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>


<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl63 {mso-number-format:"Short Date";}.xl64 {color:black; mso-number-format:"Short Date";}--></style>

<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl63 {mso-number-format:"Short Date";}.xl64 {color:black; mso-number-format:"Short Date";}--></style>

<colgroup><col width="65" span="10" style="width:65pt"></colgroup><tbody>
</tbody>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
try this in B4, copy down and across

=SUMIFS($I$4:$I$15,$H$4:$H$15,$A4,$J$4:$J$15,B$2)
 
Last edited:
Upvote 0
It's returning zero's.

Should i just use the sumifs or replace the sumproduct with the sumifs?
 
Upvote 0
Hi!

Try this too in B4 and copy down and to the right:

=SUMPRODUCT(--($H$4:$H$15=$A4),--($J$4:$J$15=B$2),$I$4:$I$15)

ABCDEFGHIJK
1
201/04/201802/04/201803/04/2018
3Partreqreqreq
4F1002810F100501/04/2018
5F20059990F1001901/04/2018
6F30034360F100401/04/2018
7F400000F100102/04/2018
8F500000F200301/04/2018
9F2005601/04/2018
10F2006502/04/2018
11F2003402/04/2018
12F3002301/04/2018
13F3001101/04/2018
14F3002202/04/2018
15F3001402/04/2018
16
*****************************************************************

<tbody>
</tbody>

Markmzz
 
Last edited:
Upvote 0
It's returning zero's.

Should i just use the sumifs or replace the sumproduct with the sumifs?

it works for me


Excel 2013/2016
ABCDEFGHIJ
1
204/01/201804/02/201804/03/2018
3Partreqreqreq
4F1002810F100504/01/2018
5F20059990F1001904/01/2018
6F30034360F100404/01/2018
7F400000F100104/02/2018
8F500000F200304/01/2018
9F2005604/01/2018
10F2006504/02/2018
11F2003404/02/2018
12F3002304/01/2018
13F3001104/01/2018
14F3002204/02/2018
15F3001404/02/2018
Sheet1
Cell Formulas
RangeFormula
B4=SUMIFS($I$4:$I$15,$H$4:$H$15,$A4,$J$4:$J$15,B$2)
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,438
Members
448,897
Latest member
dukenia71

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