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

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
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,215,459
Messages
6,124,948
Members
449,198
Latest member
MhammadishaqKhan

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