Using Wildcards in SUMPRODUCT

Felix_Dragonhammer

Board Regular
Joined
Apr 7, 2015
Messages
117
I have a formula as follows (adapted from a post on this fabulous forum)

=SUMPRODUCT(--(LEFT('[Sales Current Week.xlsm]2014 Retail'!$C$145:$C$196, 5)="13**2"), '[Sales Current Week.xlsm]2014 Retail'!AE145:AE196)

What I'd like it to do is sum sales in column AE in which the corresponding SKUs stored in column C begin with "13" and the 5th character is a 2.

Is this possible? I know the syntax of the formula is correct, as I tried it with just "13" and changed the number of characters of the LEFT formula to "2".

Ay help resolving this would be appreciated!
 
Try the function MID. I think I typed all this correctly.

SUMPRODUCT(--(LEFT('[Sales Current Week.xlsm]2014 Retail'!$C$145:$C$196, 2)="13"),--(MID('[Sales Current Week.xlsm]2014 Retail'!$C$145:$C$196,5,1)="2"), '[Sales Current Week.xlsm]2014 Retail'!AE145:AE196)
 
Upvote 0
Hi

Remark:

If you have the SKU's stored as text, you can use a simple SumIf():

=SUMIF('[Sales Current Week.xlsm]2014 Retail'!$C$145:$C$196,"13??2*",'[Sales Current Week.xlsm]2014 Retail'!AE145:AE196)
 
Upvote 0

Forum statistics

Threads
1,226,847
Messages
6,193,314
Members
453,790
Latest member
yassinosnoo1

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