Sumif and Index Match?

mimixnoodles

New Member
Joined
Feb 16, 2012
Messages
41
Hi All- I have a formula I need help figuring out. Here is a simpler sample based on a much larger dataset. I need a formula in cell G5 that will give me the dollar amount based on the name and label criteria changing. The labels will have duplicates so I need to do a sum. The name will not have duplicates. Thank you in advance!

1602661683486.png
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Excel Formula:
=sumif(indirect("A1:A"&counta(A:A)+1),F3&" "&G3,offset(A1,,match(F2&" "&G2,B1:D1,)-1,counta(A:A)))
 
Last edited by a moderator:
Upvote 0
A non-volatile option
+Fluff v2.xlsm
ABCDEFG
1Name AName BName CCriteria
2Label 18.008.006.00NameB
3Label 26.002.001.00Label2
4Label 310.006.004.00
5Label 18.008.004.00Answer3
6Label 44.008.005.00
7Label 57.002.009.00
8Label 210.001.009.00
9Label 19.009.008.00
Master
Cell Formulas
RangeFormula
G5G5=SUMIFS(INDEX(B2:D9,,MATCH(F2&" "&G2,B1:D1,0)),A2:A9,F3&" "&G3)
 
Upvote 0
Thank you both!! I ended up using the non volatile option and works beautifully. Was driving me nuts not being able to figure it out!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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