COUNTA with condition and without duplicates

pyniu

New Member
Joined
May 20, 2015
Messages
4
Dear All,

I would like to count number of unique values without duplicates and with condition.
I spent many hours to find some answers about my issue but there wasn't clear and helpful info.

Let me introduce the problem and below data:
A2&A3 - list of persons
D:E - dates where some action was made by person
B2&B3 - counting in how many days person did action without duplicated values (values entered manually and i want to do it using formula)




*ABCDE
personno of days*aaa
aaa*aaa
bbb*aaa
TOTAL*aaa
***aaa
***aaa
***bbb
***bbb
***bbb
***bbb
***bbb
***bbb

<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="bgcolor: #ff0000, align: center"]3[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="bgcolor: #ff0000, align: center"]2[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="align: right"]4[/TD]

[TD="align: right"]2015-05-19[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="align: right"]2015-05-19[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="align: right"]2015-05-18[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="align: right"]2015-05-21[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="align: right"]2015-05-20[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="align: right"]2015-05-20[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B4=SUMPRODUCT((D1:D12<>"")/COUNTIF(D1:D12;D1:D12&""))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Here's one way using a helper column:


Excel 2010
ABCDEF
1personno of days*20/05/2015aaa1
2aaa3*20/05/2015aaa2
3bbb2*20/05/2015aaa3
4TOTAL5*19/05/2015aaa1
5***19/05/2015aaa2
6***18/05/2015aaa1
7***20/05/2015bbb1
8***21/05/2015bbb1
9***20/05/2015bbb2
10***20/05/2015bbb3
11***20/05/2015bbb4
12***20/05/2015bbb5
Sheet1
Cell Formulas
RangeFormula
B2=COUNTIFS($E$1:$E$12,A2,$F$1:$F$12,1)
F1=COUNTIFS($D$1:D1,D1,$E$1:E1,E1)
 
Upvote 0
Thank you Comfy it's good way, but i'll need to manually insert values to F column to determine number of days.

No you won't. The count in column F is determined by a formula.

Re-visist my post and you'll see the formula used in F.
 
Upvote 0
yes i see now, i didn't saw this or you editted it.
Anyway thank you very much for help, Cheers!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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