Count values in Col A with criteria in Col B

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and Thanks in advance!

I have 3 named and Dinamic formulas:
  • rcColA 'Shows Countries
  • rcColB 'Cities
  • rcColC 'Diseases
In Cell A1 I would like to count how many different diseases I have eg in Spain
Since in many cities we have the same disease, I do not want to count the same disease more than one time
ps:
I do not have Office 365
I do not wat to use a Pivot table
I do not want to use extra columns
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi

Hopefully, you can adapt this formula to solve your problem.

I have the following data and spreadsheet layout.

I entered the following array formula in E2 by pressing Shift + Control + Enter together.

=SUM(--(FREQUENCY(IF(A1:A22=D2,MATCH(C1:C22,C1:C22,0)),ROW(B1:B22)-1)>0))

1614302390368.png


Kind regards

Saba
 
Upvote 0
Solution

Forum statistics

Threads
1,215,717
Messages
6,126,424
Members
449,314
Latest member
MrSabo83

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