SUMIFS with multiple arrays

Chenboy2

New Member
Joined
Sep 25, 2005
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Copy of Excel Practice.xlsx
ABCDEFGHIJ
1Trial Balance (in $MMs)
2Currency: USD
3
4hhEntity TypeCorporationPartnershipCorporationPartnershipCorporationCorporationCorporation
5hhJurisdictionUSUSCACASZNLNL
6hhaCompanyCompany ACompany BCompany CCompany DCompany ECompany FCompany G
7MappingGL AccountGL AccountABCDEFG
8B/SCash1111007005005006,0001,0007,000
9B/SLoan receivable11250195
10B/SInvestment in CA11350
11B/SInvestment in SZ1141,000
12B/SInvestment in NL1156,0005,000
13B/SInvestment in US116300
14B/SA/P221(15)
15B/SLoan payable222(10)(14)
16B/SLong-term debt223-(495)(490)(490)(100)-(2,000)
17B/SOther liabilities224(25)(20)(15)(15)(10)(5)-
18B/SCapital Contributions331(3,000)(300)(50)(50)(1,000)(6,000)(5,000)
19B/SCommon Stock332--1010152025
20B/SDistributions33320015--73710
21B/SRetained earnings334(4,569)114108108(4,877)(106)(46)
22PnLGross receipts441(300)(345)(340)(340)(335)(330)(325)
23PnLCOGS551175150185185190195200
24PnLDepreciation552275037374247100
25PnLInterest T-Bills553(5)------
26PnLBank interest554(6)10520205012035
27PnLOther interest55537121217221
28PnLUS Tax Expense66122------
29PnLState Tax Expense6623------
30PnLForeign Tax Expense663--232310--
31TAX287353527221
Master
Cell Formulas
RangeFormula
D7:J7D7=RIGHT(D6,1)
D31D31=SUM(D27:D29)
E31:J31E31=SUM(E27:E30)



Copy of Excel Practice.xlsx
ABCDE
1Total Tax Provision by enity type and jurisdiction
2
3
4
5USCASZNL
6Company A34.772270.4426.7223
7Company B34.772270.4426.7223
8Company C27.7722
9Company D27.7722
10Company E27.7722
11Company F27.7722
12Company G
Problem 7
Cell Formulas
RangeFormula
B7:E7C7=SUMIFS(Master!$D31:$J31,Master!$D5:$J5,{"US","CA","SZ","NL"})
B6:E6B6=SUMIFS(Master!$D$31:$J$31,Master!$D$5:$J$5,{"US","CA","SZ","NL"})
B8:B11B8=SUMIFS(Master!$D$31:$J$31,Master!$D$5:$J$5,{"US","CA","SZ","NL"},Master!$D$6:$J$6,{"Company A","Company B","Company C","Company D","Company E","Company F","Company G"})
Press CTRL+SHIFT+ENTER to enter array formulas.
Dynamic array formulas.


Hi,

This student I'm tutoring is trying to complete #7, Total tax provision by entity type, and jurisdiction.

I got this for Company A: =SUMIFS(Master!$D$31:$J$31,Master!$D$5:$J$5,{"US","CA","SZ","NL"}), and it works

It doesn't work for Company B-G.

Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I got this for Company A: =SUMIFS(Master!$D$31:$J$31,Master!$D$5:$J$5,{"US","CA","SZ","NL"}), and it work

This formula is returning values for companies A through G, not just Company A, so I'm not clear how you can regard this as "working"?

What results do you expect to see for Companies B, C .... G?

(I'm also not clear why you've hard-coded {"US","CA","SZ","NL"} rather than simply pointing to your row headers, currently - but not necessarily - containing the same values).
 
Upvote 0
I turns out that it didn't work. Sorry, I thought that it worked.

The student set up the answer wrong.

It's supposed to be entity and jurisdiction, so it would be actually "Corporation" and "Partnership", and {US","CA","SZ","NL", and not Companies A-G.
 
Upvote 0
In 365, you can do it like this:

ABCDEFGHIJ
1
2
3
4hhEntity TypeCorporationPartnershipCorporationPartnershipCorporationCorporationCorporation
5hhJurisdictionUSUSCACASZNLNL
6hhaCompanyCompany ACompany BCompany CCompany DCompany ECompany FCompany G
7MappingGL AccountGL AccountABCDEFG
8
9
10
11PnLOther interest55537121217221
12PnLUS Tax Expense66121.5922000000
13PnLState Tax Expense6623.18000000
14PnLForeign Tax Expense6630023.2223.229.7200
15TAX27.7722735.2235.2226.72221
16
17
18
19
20Tax summaryUSCASZNL
21Corporation27.772235.2226.7223
22Partnership735.2200
Master
Cell Formulas
RangeFormula
D7:J7D7=RIGHT(D6,1)
D15D15=SUM(D11:D13)
E15:J15E15=SUM(E11:E14)
E21:H22E21=SUMIFS(D15:J15,D5:J5,E20:H20,D4:J4,D21:D22)
Dynamic array formulas.

By the way, your SUM() formula for TAX don't look correct - they include an interest item, and column D doesn't include the foreign tax expense.
 
Upvote 0

Forum statistics

Threads
1,215,717
Messages
6,126,422
Members
449,314
Latest member
MrSabo83

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