SUMPRODUCT without exact match?

danielleissy

New Member
Joined
Oct 28, 2015
Messages
2
Hi,

So far this sum works OK, it looks up if the part stored in N4 has been used in col F, then checks if the vehicle type stored in N2 matches any used in column E. It then draws the qty from col D.

However I can only get it to check the vehicle type if its an exact match. But my list in col E has more than just the one word. For example cell N2 might say "Sprinter" but col E might have "Mercedes Sprinter 2006 - 2012" so it doesn't pick it up.

=SUMPRODUCT(--($F$3:$F$13=N4), --($E$3:E$13=$N$2), $D$3:$D$13)

Then I also need it to deduct the quantity being picked up, from the existing stock figure, which is column O.
Any help would be greatly appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
=SUMPRODUCT(--($F$3:$F$13=N4), --ISNUMBER(SEARCH($N$2,E$3:E$13)), $D$3:$D$13)

and

=SUMPRODUCT(--($F$3:$F$13=N4), --ISNUMBER(SEARCH($N$2,E$3:E$13)), $D$3:$D$13 - $O$3:$O$13)

Caveat: If the value of N2 is a common word, this might inadventent include other things. For example, if N2 is "print", the search will match "x imprint y" as well as "a print b". Your intent might be to include only the latter. It is difficult to exclude the first in Excel; easier to do in VBA. ("Difficult", but not impossible.) Hopefully, you are confident that the problem will not arise.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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