Help with SUMIFS formula - one condition only matching a part of the text in a cell...

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need some help with the below SUMIFS formula:

=SUMIFS(Table_Query_from_INCjobboss322[Order_Qty],Table_Query_from_INCjobboss322[Column1],[@SO],Table_Query_from_INCjobboss322[Material],[Part No])

The last section of the formula: Table_Query_from_INCjobboss322[Material],[Part No]

dictates if the Part number matches the number in the material column, unfortunately all part numbers in that column start with a"DH "

Is there anyway to incorporate maybe a LEFT formula to only match the contents of the cell 3 characters from the left?

1597436455161.png


Thank you to anyone who can help :)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about
=SUMIFS(Table_Query_from_INCjobboss322[Order_Qty],Table_Query_from_INCjobboss322[Column1],[@SO],Table_Query_from_INCjobboss322[Material],"*"&[Part No])
 
Upvote 0
Just add "DH "&Criteria

I get the below error when I write the formula this way:
=SUMIFS(Table_Query_from_INCjobboss322[Order_Qty],Table_Query_from_INCjobboss322[Column1],[@SO],"DH "&Table_Query_from_INCjobboss322[Material],[Part No])

1597439540609.png
 
Upvote 0
How about
=SUMIFS(Table_Query_from_INCjobboss322[Order_Qty],Table_Query_from_INCjobboss322[Column1],[@SO],Table_Query_from_INCjobboss322[Material],"*"&[Part No])

If I use "*" would that not grab that combination of characters for the part number if they exist in that cell? Because I may have situations where the part number can contain those characters and more, example:

DH XH5782
DH ATXH5782
DH WQ5XH5782

That's why I was hoping to single out the "DH " as that is always consistent...
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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