Multiple Search Criteria "Count"/"SUMPRODUCTIF"

ugotron

New Member
Joined
Nov 22, 2010
Messages
22
SUMPRODUCTIF? formula help.

count or sum products that list by week, then by unit, then by section or number 1-6.


I need to be able to filter multiple worksheets same file, for data that has a number 1-6, then filter a second section that lists specific text (between) 6 different organizations, then filter by a work seek of Sunday thru Saturday. and get a count.

For example Week 12
Dog, 1 = 2
Dog, 2 = 1
Dog, 3 = 0
Dog, 4 = 4
Dog, 6 = 7
Cat, 1 = 0
Cat, 2 = 2


then example week 13
and so on....

then example week 14

CPT Ron

:eeek:
 

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.
Sorry forgot to give some kind of formula with a visual.



=SUMPRODUCT(--(TEXT('sheetname'!$A$2:$A$2000, "DOG"), --('sheetname'!$B$2:$B$2000, "1"), (.....week X or date range....)


CPT Ron

:eeek:
 
Upvote 0
Try like this

=SUMPRODUCT(--('sheetname'!$A$2:$A$2000="DOG"), --('sheetname'!$B$2:$B$2000=1), --(sheetname!$C$2:$C$2000>="1/1/2011"+0,--(sheetname!$D$2:$D$2000<="1/3/2011"+0))
 
Upvote 0
I get the formula to count with.

=SUMPRODUCT(--'SHEETNAME'!$a$2:$a$2000>="3/1/2011"+0),--'SHEETNAME'!$B$2:$B$2000="DOG"), --'SHEETNAME'!$C$2:$C$2000="Yes")

But if I try to either +7 days I get incorrect number or if I use second date range but change > to < I get "0" count.

and

if I use another criteria like --'SHEETNAME'!$E$2:$E$2000="1") I get the count of "0"

CPT Ron
 
Upvote 0
VoG

I am on a government computer, unable to load extra programs.

Could really use the help here.

two issues.

1. if use second date range, I get incorrect number validated
2. if I search another criteria with the numbers 1-6, I receive value of zero.

CPT Ron
 
Upvote 0
If you are trying to count numbers, remove the quotes

--('SHEETNAME'!$E$2:$E$2000=1)
 
Upvote 0
VoG,

removing the " from numbers fixed second problem.

How do I ether set weeks or date range?

CPT Ron
 
Upvote 0
when I use the date range, I get more then I should in quantity.

If I filter just from march 1, my numbers add up.

When i try to range it from week to week quantity is to high. only difference is I added second range
:confused:


Is there a different way to filter dates or weeks when using multiple search criteria?

CPT Ron
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

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