INDEX MATCH two criteria with SUMIF

vostroxe

New Member
Joined
Jul 13, 2018
Messages
29
Hello,

Does anyone know on how to combine SUMIF with INDEX MATCH. I have an issue whereby my lookup only identify first result that is in Sample C2. My intention that my formula will sum all the figure in column C i.e 700,000. My lookup value need to be maintain on Account number & Item no.

Sample

ABCD
1Co CodeAccount Number12
290992170100659,0000
3909921701002,300700
49099217010038,70056

<tbody>
</tbody>

My result using below formula.

=INDEX(Sample!A2:C4,MATCH(A2,Sample!B1:B4,0),MATCH(B2,Sample!C1:C2,0))

ABC
1Account NumberItemAmount
221701001659,000

<tbody>
</tbody>


Intended result


ABC
1Account NumberItemAmount
221701001700,000

<tbody>
</tbody>
321701002756

<tbody>
</tbody>


****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">ABC1Account NumberItemAmount221701001700,000
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about


Book1
ABCD
1Co CodeAccount Number12
290992170100659,0000
3909921701002,300700
49099217010038,70056
5
6
11
12
13
14Account NumberItemAmount
1521701001700,000
1621701002756
Sheet4
Cell Formulas
RangeFormula
C15=SUMIF($B$2:$B$4,A15,INDEX($C$2:$D$4,,MATCH(B15,$C$1:$D$1,0)))
 
Upvote 0
Try


A
B
C
D
E
F
G
H
1
Co Code​
Account Number​
1​
2​
Account Number​
Item​
Amount​
2
9099​
2170100​
659000​
0​
2170100​
1​
700000​
3
9099​
2170100​
2300​
700​
4
9099​
2170100​
38700​
56​

Formula in H2
=SUMIF($B:$B,F2,INDEX($A:$D,0,MATCH(G2,$A$1:$D$1,0)))

M.
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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