sumproduct help

Hoss97

Board Regular
Joined
Feb 2, 2009
Messages
84
I know this has been addressed, but I am still having trouble getting my sumproduct formula to work. I am using Excel 2003. In column a, I have order numbers that begin with 4 for stock orders and begin with 5 for custom orders. In column e, I have quantities. In column s, I have an "x" if the order has been assembled. I am trying to get a total for the number of custom assemblies that have been completed. The formula that I am using is listed below, but is returning a value of 0. Any help is appreciated!!

=SUMPRODUCT(('Current Workorder List'!A3:A100="5*")*('Current Workorder List'!S3:S100="x"),'Current Workorder List'!E3:E100)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Can't use wildcards like that in Sumproduct...

Try using the LEFT function

=SUMPRODUCT((LEFT('Current Workorder List'!A3:A100,1)="5")*('Current Workorder List'!S3:S100="x"),'Current Workorder List'!E3:E100)
 
Upvote 0
I know this has been addressed, but I am still having trouble getting my sumproduct formula to work. I am using Excel 2003. In column a, I have order numbers that begin with 4 for stock orders and begin with 5 for custom orders. In column e, I have quantities. In column s, I have an "x" if the order has been assembled. I am trying to get a total for the number of custom assemblies that have been completed. The formula that I am using is listed below, but is returning a value of 0. Any help is appreciated!!

=SUMPRODUCT(('Current Workorder List'!A3:A100="5*")*('Current Workorder List'!S3:S100="x"),'Current Workorder List'!E3:E100)
SUMPRODUCT doesn't support the use of wildcards.

Try it like this:

=SUMPRODUCT(--(LEFT('Current Workorder List'!A3:A100)="5"),--('Current Workorder List'!S3:S100="x"),'Current Workorder List'!E3:E100)
 
Upvote 0
Thank you both for the quick response!! I tried both formulas, and the both worked. What does the "left" at the beginning accomplish?
 
Upvote 0
Thank you both for the quick response!! I tried both formulas, and the both worked. What does the "left" at the beginning accomplish?
LEFT returns a specified number of characters from a string starting from the first character (leftmost). For example:

A1 = ABCDEF

=LEFT(A1,3) returns ABC

If the number of characters argument is omitted then it defaults to 1.

=LEFT(A1) returns A
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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