Asterick "*" Causing incorrect summation in an array formula - any advice?

jchenry

New Member
Joined
May 5, 2018
Messages
7
I am using a sumif array formula:
=SUM(SUMIFS($T$6:$T$3000,$D$6:$D$3000,$B3,$B$6:$B$3000,"Y",$BJ$6:$BJ$3000,{"1,2,3","1,3","2,3",3}))

this adds items that have = {"1,2,3","1,3","2,3",3} these different combinations. I realized there is also another option I must consider "2*,3" however when I add this to the formula {"1,2,3","1,3","2,3",3,"2*,3"} the output is incorrect. If I change the "2*,3 value to "4" for instance ({"1,2,3","1,3","2,3",3,4}) it works perfectly.

I assume there is some error caused by the "*" but I cannot control the inputs of this cell so I need to be able to find a text value with the "*" in it to compare.

Any help is appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to the MrExcel board!

The asterisk is acting as a wildcard. Try changing "2*,3" to "2~*,3"
 
Upvote 0
Peter - Thank you very much! That worked of course. I feel very silly, but I can now sleep easier.
 
Upvote 0
Peter - Thank you very much! That worked of course. I feel very silly, but I can now sleep easier.
Cheers. No need to feel silly, this is what the forum is for. Enjoy your sleep. :)
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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