Sumifs - criteria with curly brackets with reference in 1 cell

deceiverleo

New Member
Joined
Aug 24, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi Excel masters :D

I would like to find a way to put all my criteria in 1 cell and make reference to it

This will work:

=SUM(SUMIFS(sumrange,criteria_range,{"6*","7*","8*","9*"}))

--------------------------------------------------------------------------

But this will not work:

If I put {"6*","7*","8*","9*"} in cell A1

=SUM(SUMIFS(sumrange,criteria_range,A1))

---------------------------------------------------------------------------

I know if I make {"6*","7*","8*","9*"} into 4 cells 6* , 7*, 8*, 9*, it could work

But this is not what I would like to achieve

May I ask if there is a way to achieve above - to put everything in 1 cell and make reference to it?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
As my knowdledge, its impossible to convert textstring in {} format from a cell to become SUMIFS parameter.
 
Upvote 0
May I ask if there is a way to achieve above - to put everything in 1 cell and make reference to it?
You can if you have the TEXTSPLIT function in your version of 365. You may not have that function yet as shown by the function's Help page
In due course though all 365 subscribers should get it so keep in mind if you don't already have it.

22 08 25.xlsm
ABCDEF
16*,7*,8*,9*12
216a2
319b
41
5
SUMIFS
Cell Formulas
RangeFormula
F1F1=SUM(SUMIFS(sumrange,criteria_range,{"6*","7*","8*","9*"}))
F2F2=SUM(SUMIFS(sumrange,criteria_range,TEXTSPLIT(A1,",")))
Named Ranges
NameRefers ToCells
criteria_range=SUMIFS!$D$1:$D$4F1:F2
sumrange=SUMIFS!$C$1:$C$4F1:F2
 
Upvote 0
If you do not have TextSplit or a current version of Excel, the following will work.

Name the criteria range with Formulas NameManager.
N.B. The Sum formula does not require Array Enter with current versions of Excel.

T202208a.xlsm
ABCDE
1
2
324001010
43700
54400
65400
76400
87600
7c
Cell Formulas
RangeFormula
D3D3=SUMPRODUCT(SUMIFS(B3:B8,C3:C8,CritA))
E3E3=SUM(SUMIFS(B3:B8,C3:C8,CritA))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,338
Members
449,218
Latest member
Excel Master

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