![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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? |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
where E1 houses the color condition, E2 and E3 the (inclusive) between condition, and E4 the region condition. |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
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) |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|