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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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