Hi all,
I have been struggling with this situation and am hoping someone can help.
I have found solutions that almost get me there, but, nothing fully fits my situation.
Here is some example data:
[TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"]site[/TD]
[TD="width: 64"]org[/TD]
[TD="width: 64"]count org[/TD]
[TD="width: 64"]category[/TD]
[/TR]
[TR]
[TD]site1[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site2[/TD]
[TD]org2[/TD]
[TD]org2[/TD]
[TD]cat2[/TD]
[/TR]
[TR]
[TD]site3[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat3[/TD]
[/TR]
[TR]
[TD]site4[/TD]
[TD]org3[/TD]
[TD]org3[/TD]
[TD]cat4[/TD]
[/TR]
[TR]
[TD]site5[/TD]
[TD]org3[/TD]
[TD]org3[/TD]
[TD]cat4[/TD]
[/TR]
[TR]
[TD]site6[/TD]
[TD]org4[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site7[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site8[/TD]
[TD]org4[/TD]
[TD]org4[/TD]
[TD]cat1[/TD]
[/TR]
</tbody>[/TABLE]
The situation:
data is in a table that is updated regularly through connection to oledb - call it 'table1' on Sheet1
need unique count of 'count org' only if category is 1 or 4
count org has blanks as indicated above, but, category does not contain blanks.
real data has thousands of rows and many categories, I want to exclude several categories (nested if or multiple logic tests in formula would be difficult).
I can (and tried to) put categories to count in separate criteria list as the categories rarely change. Single criteria would be much easier, but, I have a bunch.
I am looking for a single cell solution (dashboard type report), but, helper columns may be possible (the count org column is a helper I have created).
in sample above, unique count (of count org) would be 3, but, unique count with criteria would be 2.
I am using excel 2010.
I have tried many gyrations of sumproduct, frequency, match, and pairing with if, countif(s), etc.. and can get either unique count or match the criteria to work, but, not together.
I saw some formulas using rows, but, they had single cell criteria or I couldn't get them to work with a table that shrinks / grows with each update.
Any help would be greatly appreciated!
tsheets
I have been struggling with this situation and am hoping someone can help.
I have found solutions that almost get me there, but, nothing fully fits my situation.
Here is some example data:
[TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"]site[/TD]
[TD="width: 64"]org[/TD]
[TD="width: 64"]count org[/TD]
[TD="width: 64"]category[/TD]
[/TR]
[TR]
[TD]site1[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site2[/TD]
[TD]org2[/TD]
[TD]org2[/TD]
[TD]cat2[/TD]
[/TR]
[TR]
[TD]site3[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat3[/TD]
[/TR]
[TR]
[TD]site4[/TD]
[TD]org3[/TD]
[TD]org3[/TD]
[TD]cat4[/TD]
[/TR]
[TR]
[TD]site5[/TD]
[TD]org3[/TD]
[TD]org3[/TD]
[TD]cat4[/TD]
[/TR]
[TR]
[TD]site6[/TD]
[TD]org4[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site7[/TD]
[TD]org1[/TD]
[TD][/TD]
[TD]cat1[/TD]
[/TR]
[TR]
[TD]site8[/TD]
[TD]org4[/TD]
[TD]org4[/TD]
[TD]cat1[/TD]
[/TR]
</tbody>[/TABLE]
The situation:
data is in a table that is updated regularly through connection to oledb - call it 'table1' on Sheet1
need unique count of 'count org' only if category is 1 or 4
count org has blanks as indicated above, but, category does not contain blanks.
real data has thousands of rows and many categories, I want to exclude several categories (nested if or multiple logic tests in formula would be difficult).
I can (and tried to) put categories to count in separate criteria list as the categories rarely change. Single criteria would be much easier, but, I have a bunch.
I am looking for a single cell solution (dashboard type report), but, helper columns may be possible (the count org column is a helper I have created).
in sample above, unique count (of count org) would be 3, but, unique count with criteria would be 2.
I am using excel 2010.
I have tried many gyrations of sumproduct, frequency, match, and pairing with if, countif(s), etc.. and can get either unique count or match the criteria to work, but, not together.
I saw some formulas using rows, but, they had single cell criteria or I couldn't get them to work with a table that shrinks / grows with each update.
Any help would be greatly appreciated!
tsheets