=SUMIFS help matching 2 names

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,137
Office Version
  1. 365
Platform
  1. Windows
Hi, Sheet1 would be where my data is at. I need to get the Sum total on Sheet2 if the name and class code match the same name and class code on Sheet1.
I highlighted in yellow what to match and sum up the total on Sheet1. Formula would be in Sheet2 Column D. any help would be great.

Book2
ABCD
1NameGross Amount Class codeFormula Below
2StreetSuper156.33
3AddressLabor52.62
4
5
6
7
8
9
10
Sheet2



Book2
ABCD
1blankCodeClass CodeGross
2emptyStreetSuper25.23
3StreetSuper50.23
4AddressLabor52.62
5StreetSuper45.26
6StreetSuper12.56
7StreetSuper23.05
8
9
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try:
Book1
ABCD
1NameGross AmountClass codeFormula Below
2StreetSuper156.33
3AddressLabor52.62
Sheet2
Cell Formulas
RangeFormula
D2:D3D2=SUMIFS(Sheet1!$D$2:$D$7,Sheet1!$B$2:$B$7,A2,Sheet1!$C$2:$C$7,C2)


Book1
ABCD
1blankCodeClass CodeGross
2emptyStreetSuper25.23
3StreetSuper50.23
4AddressLabor52.62
5StreetSuper45.26
6StreetSuper12.56
7StreetSuper23.05
Sheet1
 
Upvote 0
Solution
As an option
Book1
ABCD
1NameGross AmountClass codeFormula Below
2StreetSuper156,33
3AddressLabor52,62
Sheet2
Cell Formulas
RangeFormula
A2:A3A2=UNIQUE(Sheet1!B2:B7)
C2:C3C2=UNIQUE(FILTER(Sheet1!C2:C7,Sheet1!B2:B7=A2))
D2:D3D2=SUMIFS(Sheet1!D2:D7,Sheet1!B2:B7,A2,Sheet1!C2:C7,C2)
Dynamic array formulas.

Book1
ABCD
1blankCodeClass CodeGross
2emptyStreetSuper25,23
3StreetSuper50,23
4AddressLabor52,62
5StreetSuper45,26
6StreetSuper12,56
7StreetSuper23,05
Sheet1
 
Upvote 0

Forum statistics

Threads
1,226,114
Messages
6,189,052
Members
453,522
Latest member
Seeker2025

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