Use another Cell as Sumifs OR criteria

Irene123

New Member
Joined
May 9, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi!

I am trying to do a Sumifs OR formula but list the criteria array in a singe cell for easy reference.

For Example, here for Rep A, I would like to show the value for USA or Mexico, and Rep B the value for Mexico Only while being able to easily update the Territory column without having to edit the formula directly. But, when referencing E2 here, it adds quotation marks so the formula being evaluated is =SUM(SUMIFS(B:B,A:A,"{""USA"",""Mexico""}"))

Is there a way to reference cell E2, without excel adding quotations marks? or another way to list the array criteria in a separate cell for the formula to reference?

RepTerritoryValue
TerritoryValueA{"USA","Mexico"}=SUM(SUMIFS(B:B,A:A,E2))
USA100B{"Canada"}=SUM(SUMIFS(B:B,A:A,E3))
Mexico200C{"USA","CANADA"}=SUM(SUMIFS(B:B,A:A,E4))
Canada300
USA400
Mexico500
Canada600
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
1683653570532.png
 
Upvote 0
Hi & welcome to MrExcel.
How about like
Fluff.xlsm
ABCDEF
1RepTerritoryValue
2TerritoryValueAUSA,Mexico1200
3USA100BCanada900
4Mexico200CUSA,CANADA1400
5Canada300
6USA400
7Mexico500
8Canada600
9
Main
Cell Formulas
RangeFormula
F2:F4F2=SUM(SUMIFS(B:B,A:A,TEXTSPLIT(E2,",")))
 
Upvote 1
Solution
THAKNY OU
Hi & welcome to MrExcel.
How about like
Fluff.xlsm
ABCDEF
1RepTerritoryValue
2TerritoryValueAUSA,Mexico1200
3USA100BCanada900
4Mexico200CUSA,CANADA1400
5Canada300
6USA400
7Mexico500
8Canada600
9
Main
Cell Formulas
RangeFormula
F2:F4F2=SUM(SUMIFS(B:B,A:A,TEXTSPLIT(E2,",")))
THANK YOU SO MUCH!!! This works!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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