Sumifs from the List of criteria

p9j123

Active Member
Joined
Apr 15, 2014
Messages
288
Office Version
  1. 2013
Platform
  1. Windows
I need help in creating a sumifs formula, but instead of the criteria being static or from a single cell, I need the sumifs formula to check on the list of criteria.

I need a formula in excel specifically in B1 of Sheet1, to sum the value of Sheet2!L:L if

1.) Sheet2!J:J contains any of the content from Sheet1!I:I and,
2.) Sheet2!A:A contain any of the content from Sheet1!K:K and
3.) Sheet2!M:M is equals to "Chicago"
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Is this some kind of excel challenge question that you're trying to win a prize with. I'm sure there are some shorter formulas than this. But this seems to work. I did not create multiple sheets, so you'll need to adjust the formulas as necessary:

NOTE: I am assuming you want to sum of all regardless of the fact that you may have only 1 match in each of the 3 criteria (and that could even be in one row).

Book1
ABCDEFGHI
1526Sheet1ISheet1KSheet2ASheet2JSheet2MSheet2L
2TGQJFTUXVOZXChicago31
3IQZIQZBMSVOWChicago29
4OJEVQKIQZLOIChicago32
5KIJZWDNQEBERNew Orleans36
6SCKIHBLOJOCYNew Orleans30
7DKYFTFHDIXERNew Orleans39
8YJJWRHTQLKJZNew Orleans30
9HMDUZKBWXOUQChicago39
10KJPHTOKDFZCUChicago38
11OVIIUUWGKHEGChicago39
12LYSYQAXDZISB42
13WLHWJREVJOFK35
14LNDYJKKEDZBV42
15IBKPUIXFQWJR37
16LWBIZVFSLOYQ27
17YDNJZL
18EMWGCF
19HTUWFZ
20LOIBEV
21GWGVHG
Sheet1
Cell Formulas
RangeFormula
B1B1=IF(AND(SUM(--(TRANSPOSE($D$2:$D$21)=($G$2:$G$16)))>0, SUM(--(TRANSPOSE($F$2:$F$21)=($E$2:$E$16)))>0, SUM(--($H$2:$H$11="Chicago"))>0),SUM($I$2:$I$21),0)
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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