Counting Data Meeting 3 Criteria in 3 Columns

davids

New Member
Joined
Apr 6, 2002
Messages
1
I have database dump with info in several columns. Would like to tabulate count that meets specified criteria.

COLOR NUMBER REGION
----- ------ ------
green 5 FL
blue 6 GA
blue 4 FL
blue 1 FL
red 7 NY

What formula can I write to count numer of occurances of blue in FL having number
between 4 and 6 to produce correct result of 2?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
On 2002-04-07 13:05, davids wrote:
I have database dump with info in several columns. Would like to tabulate count that meets specified criteria.

COLOR NUMBER REGION
----- ------ ------
green 5 FL
blue 6 GA
blue 4 FL
blue 1 FL
red 7 NY

What formula can I write to count numer of occurances of blue in FL having number
between 4 and 6 to produce correct result of 2?

=SUMPRODUCT((colorrange=E1)*(numberrange>=E2)*(numberrange<=E3)*(regionrange=E4))

where E1 houses the color condition, E2 and E3 the (inclusive) between condition, and E4 the region condition.
 
Upvote 0
Alternatively, enter in G1:J2

{"color","number","number","region";
"blue",">=4","<=6","FL"}

assuming that the sample data is A1:C6, you could also use:

=DCOUNT(A1:C6,2,G1:J2)
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

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