sumproduct?

Jim_Shu

New Member
Joined
Feb 25, 2009
Messages
11
I'm trying to filter data into a cell that meets certain criteria...

I would like to count the number of times a sku is found in each region in each month... daily inventory counts are recorded.. the date is recorded as MM/DD/YYYY...

is sumproduct my solution? I'm getting errors, specifically #NAME?

=sumproduct((sheet1!L:L=SKU)*(sheet1!M:M=Region)*(sheet1!C:C>=1/1/2009)+(sheet1!C:C<=1/31/2009))
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
..cannot use the whole column as a range
also sku or any text must be in quotation marks, i.e., "SKU"
also, when using a date it must be preceded by date, i.e., C1:C100<=Date(2009,1,31)
 
Last edited:
Upvote 0
Try
=sumproduct((sheet1!L:L="SKU")*(sheet1!M:M="Region")*(sheet1!C:C>=1/1/2009)+(sheet1!C:C<=1/31/2009))

Not sure if this is exactly what you're looking for but it should clear the #Name? error. Post back if it gives wrong results.

JB<!-- / message -->
 
Upvote 0
Are SKU and Region defined names? Double-check that.

Also, I don't think you can use full column references (such as L:L) unless you're using Excel 2007.
 
Upvote 0
.....also dates won't be recognised in that format....and you don't want the +, that will give you some odd results. Try like this

=SUMPRODUCT(--(sheet1!L$2:L$1000=Y2),--(sheet1!M$2:M$1000=Z2),--(sheet1!C$2:C$1000>="1/1/2009"+0),--(sheet1!C$2:C$1000<="1/31/2009"+0))

where Y2 is a specific SKU and Z2 a specific region

You might also want to replace the "hardcoded" dates with cell references......
 
Upvote 0
No joy... still does not work... I did try the pivottable.. and while that puts it into a better format to use a data filter...it filters by day... if I could find a way to search a column and change the data to JAN, FEB, MAR, etc... based on the entered date of MM/DD/YYYY.. I'd be in good shape... well... at least exploring a different area anyways.... :eek:
 
Upvote 0
Which formula did you try, Jim?

You could extract month and year into another column like this

=TEXT(C2,"mmm-yy")
 
Upvote 0

Forum statistics

Threads
1,203,631
Messages
6,056,432
Members
444,864
Latest member
Thundama

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