Country_Calc
New Member
- Joined
- Feb 14, 2017
- Messages
- 48
- Office Version
- 365
I am trying to count unique records that involve an OR function and other criteria.
Here is the query to be answered.
How many Names have either *MD Anderson*" OR "*Anderson*" have City as "Houston" and Variable of greater than 0.
I want to do something like this, but it does not work and does not take Unique result into account.
=SUM(COUNTIFS(C2:C8,"Houston",D2:D8,">0",B2:B8,{"*"&F2&"*","*"&G2&"*"}))
Please let me know if this is possible.
Here is the query to be answered.
How many Names have either *MD Anderson*" OR "*Anderson*" have City as "Houston" and Variable of greater than 0.
I want to do something like this, but it does not work and does not take Unique result into account.
=SUM(COUNTIFS(C2:C8,"Houston",D2:D8,">0",B2:B8,{"*"&F2&"*","*"&G2&"*"}))
Please let me know if this is possible.
Unique ID Number | Name | City | Variable | Name Query 1 | Name Query 2 | Country | Desired Result | |
6680 | M.D. Anderson Internacional | Madrid | 1 | MD Anderson | Anderson | Houston | 2 | |
7632 | MD Anderson Cancer Center | Houston | 6 | |||||
8587 | MD Anderson Cancer Center | Madrid | 0 | |||||
8614 | MD Anderson Cancer Center | Madrid | 0 | |||||
10076 | M.D. Anderson Cancer Center | Houston | 0 | |||||
10077 | M.D. Anderson Cancer Center | Houston | 1 | |||||
10078 | MD Anderson Cancer Center | Houston | 0 |