Count the unique IDs for a table

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the sample table below and what I need to count: the total unique EEID that their type is R

Total Unique ID with conditions.xlsx
ABCDEFGH
1EEIDTypeQuestionsStatusResults
2611RQ1Completedis to count how many EEID that their Type is R and Completed the Q46
3611RQ2Completedtotal of unique EEID that their type is R
4611RQ3
5611RQ4Completed
6611RQ5Completed
7210NRQ2Completed
8210NRQ3
9210NRQ4Completed
10210NRQ4
11210NRQ5
12562RQ1Completed
13562RQ2Completed
14562RQ4Completed
15878RQ1Completed
16878RQ2Completed
17878RQ4Completed
18878RQ5Completed
19658NRQ4Completed
20775RQ1Completed
21775RQ2Completed
22775RQ3
23775RQ4
24830NRQ1
25830NRQ2Completed
26830NRQ3
27612RQ1Completed
28612RQ2Completed
29612RQ3
30612RQ4Completed
31893RQ1Completed
32893RQ2Completed
33893RQ3
34900NRQ4Completed
35612RQ1Completed
36612RQ2Completed
37612RQ3
38612RQ4Completed
39528RQ4Completed
40528RQ5Completed
41919RQ1Completed
42341RQ1Completed
43490NRQ4Completed
44490NRQ4
45
46
Sheet2
Cell Formulas
RangeFormula
G2G2=COUNTIFS(B2:B44,"R",C2:C44,"Q4",D2:D44,"Completed")


Any suggestions please?

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(A2:A44,B2:B44="R"))),0)
 
Upvote 0
How about
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(A2:A44,B2:B44="R"))),0)
As usual the first member to jump and help :), thank you so much that worked, but what about if I need to add another condition, i.e. (doesn't equal to "WordWord") from the Team column?

Total Unique ID with conditions.xlsx
ABCDEFG
1EEIDTypeQuestionsStatusTeamResults
2611RQ1Completedis to count how many EEID that their Type is R and Completed the Q4
3611RQ2Completedtotal of unique EEID that their type is R
4611RQ3
5611RQ4Completed
6611RQ5Completed
7210NRQ2CompletedWordWord
8210NRQ3WordWord
9210NRQ4CompletedWordWord
10210NRQ4WordWord
11210NRQ5WordWord
12562RQ1Completed
13562RQ2Completed
14562RQ4Completed
15878RQ1Completed
16878RQ2Completed
17878RQ4Completed
18878RQ5Completed
19658NRQ4Completed
20775RQ1CompletedWordWord
21775RQ2CompletedWordWord
22775RQ3WordWord
23775RQ4WordWord
24830NRQ1
25830NRQ2Completed
26830NRQ3
27612RQ1Completed
28612RQ2Completed
29612RQ3
30612RQ4Completed
31893RQ1CompletedWordWord
32893RQ2CompletedWordWord
33893RQ3WordWord
34900NRQ4Completed
35612RQ1Completed
36612RQ2Completed
37612RQ3
38612RQ4Completed
39528RQ4Completed
40528RQ5Completed
41919RQ1Completed
42341RQ1Completed
43490NRQ4Completed
44490NRQ4
Sheet2
 
Upvote 0
Like
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(A2:A44,(B2:B44="R")*(E2:E44<>"Wordword")))),0)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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