Count unique/total entries based on multiple criteria

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
433
Office Version
  1. 2013
Platform
  1. Windows
C3:C1000 has various cities listed, most are listed more than once for example, Atlanta, Chicago, New York and so on.

E3:E1000 has various colors listed, most more than once.

Atlanta may be listed 200 times in column C, of those Blue may be listed 25 times in column E and Green may be listed 41 times.
Chicago may be listed 250 time in column C, of those Blue may be listed 12 times in column E and Green may be listed 24 times.

If I just count how many times Blue is listed, I'd get 37. If I count how many times Green is listed, I'd get 65. This isn't what I need.

I need a formula in column L that will count Atlanta as 1, blue as 25 -OR- Atlanta as 1, green as 41 and so on.

Thanks in advance
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this...
Book1
ABCDEF
1CityColor
2AtlantaBlueAtlantaBlue4
3AtlantaBlueAtlantaGreen4
4ChicagoGreenChicagoBlue5
5ChicagoBlueChicagoGreen6
6ChicagoBlue
7ChicagoBlue
8AtlantaGreen
9ChicagoBlue
10ChicagoGreen
11AtlantaGreen
12AtlantaGreen
13ChicagoGreen
14AtlantaBlue
15AtlantaBlue
16ChicagoBlue
17ChicagoGreen
18ChicagoGreen
19AtlantaGreen
20ChicagoGreen
Sheet3
Cell Formulas
RangeFormula
F2:F5F2=COUNTIFS($A$2:$A$20,D2,$B$2:$B$20,E2)

Hope that helps,

Doug
 
Upvote 0
Solution
Try this...
Book1
ABCDEF
1CityColor
2AtlantaBlueAtlantaBlue4
3AtlantaBlueAtlantaGreen4
4ChicagoGreenChicagoBlue5
5ChicagoBlueChicagoGreen6
6ChicagoBlue
7ChicagoBlue
8AtlantaGreen
9ChicagoBlue
10ChicagoGreen
11AtlantaGreen
12AtlantaGreen
13ChicagoGreen
14AtlantaBlue
15AtlantaBlue
16ChicagoBlue
17ChicagoGreen
18ChicagoGreen
19AtlantaGreen
20ChicagoGreen
Sheet3
Cell Formulas
RangeFormula
F2:F5F2=COUNTIFS($A$2:$A$20,D2,$B$2:$B$20,E2)

Hope that helps,

Doug
That worked, thank you
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,143
Members
449,098
Latest member
Doanvanhieu

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