numeric wildcard in sumifs

sriche01

Board Regular
Joined
Dec 24, 2013
Messages
136
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of item numbers. Each item number consists of a text string ending with 2 numeric digits. The text string denotes the product, the numbers denote the size. So here are some examples:

POTE GOS32
POTE MCW10
POTE MCW32
POTE PIB10
POTE PIB32



<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
Not all items have a similar size distribution.

Here's my thing: I have a column that has referenced my entire list to trim the size off the end of the item numbers - it no longer has numbers. Also, it has reduced the list to unique values. Thus in that column the above list appears this way:

POTE GOS
POTE MCW
POTE PIB

<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
Now I want to refer back to both lists with a sumifs function.

Item#Qty
POTE GOS3264
POTE MCW1030
POTE MCW32128
POTE PIB1050
POTE PIB32256
POTE GOSFunction in Question
POTE MCW
POTE PIB

<tbody>
</tbody>

So where I have "Function in Question" I want to sumif the above list with criteria being the cell to the left. Essentially summing all item number qty that has the same text prefix. My sumif will not work with a criteria of A8&"*" and I have read that * as a wildcard does not work for numbers. Is there any wildcard for numbers? or some obvious workaround I am missing?

Thanks in advance!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Oh and just so you know, not all text string prefixes are the same length.
 
Upvote 0
It should work!

=SUMIF($A$18:$A$22,$A26&"*",$B$18:$B$22)

Code:
[TABLE="width: 130"]
<tbody>[TR]
[TD="width: 65"]POTE GOS32[/TD]
[TD="width: 65, align: right"]1[/TD]
[/TR]
[TR]
[TD]POTE MCW10[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]POTE MCW32[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]POTE PIB10[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]POTE PIB32[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]POTE GOS[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]POTE MCW[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]POTE PIB[/TD]
[TD="align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
You are right... I feel foolish. The item I thought was a test because there should be a quantity present was showing zero. But it was supposed to because there was no quantity to sum. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,276
Members
449,149
Latest member
mwdbActuary

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