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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
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,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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