SUMIF based on partial text match not working

aakoni

New Member
Joined
Jun 13, 2019
Messages
5
Hi,

I'm trying to do a SUMIF over two worksheets for a number of values in a lookup table. The idea is that in cell AV39 there should be an addition of the associated combined scores on the look up sheet, Column D.

The issue comes when there are some Pt Nos that have aslight variation in the look up table as shown in the example below. So as aresult the defects column on the main spreadsheet only counts the exact matchof the Combined cells in both sheetse.g. WEF1-WM2494A gives defect number of 24 instead of 26.



IÂ’m trying to figure out a way for both of those cells to besummed in the look up sheet for WEF1-WM2494A.


I tried the asterisk “”*”” & in the formula but that didn’treturn the correct results.


I hope that makes sense.

Thanks.


Example:
Main Sheet
 
Last edited by a moderator:
Hi Dante,


Thank you SO MUCH! You’re a star! That formulaworks and that’s great!


BUT lol It’s thrown up another issue, for example if we addROW 4 to Sheet 1, the result the formula gives is 80, not 120 because it’s nowdiscounting the WM2494A in the lookup.

No problem, try this array formula.


{=MAX(SUMPRODUCT((ISNUMBER(SEARCH(Sheet2!$B$2:$B$9,$B2)))*(ISNUMBER(SEARCH(Sheet2!$C$2:$C$9,$B2)))*(Sheet2!$E$2:$E$9)), SUMPRODUCT((ISNUMBER(SEARCH(C2,Sheet2!$D$2:$D$9)))*(ISNUMBER(SEARCH(D2,Sheet2!$D$2:$D$9)))*(Sheet2!$E$2:$E$9)))}
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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