Unique values count

damak

New Member
Joined
Mar 3, 2016
Messages
10
Hi everyone

I need help for a formula to count unique values in column A that are blank in column D ...and also to count unique values in column A that are not blank in column D.

I use Excel 2003


ABCD
37/1/2016
17
307/1/2016
327/1/2016
3413/1/2016
4611/1/2016
4811/1/2016
4811/1/2016
6115/1/2016
62
62
6315/1/2016
8816/1/2016

<tbody>
</tbody>

 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
3=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))7/1/2016=SUM(C3)
17=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))
30=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))7/1/2016
32=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))7/1/2016
34=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))13/1/2016
46=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))11/1/2016
48=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))11/1/2016
48=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))11/1/2016
61=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))15/1/2016
62=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))
62=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))
63=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))15/1/2016
88=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))16/1/2016
3=COUNTIF(C1,RC1)=--AND(RC2>0,NOT(RC4=""))

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Sorry, i dont really undestand how that works

I need a formula to give the results in one cell, for example in cell E1 the result of unique values in column A that are blank in column D... and in cell E2 the result of unique values in column A that are blank in column D
 
Upvote 0
Sorry, i dont really undestand how that works

I need a formula to give the results in one cell, for example in cell E1 the result of unique values in column A that are blank in column D... and in cell E2 the result of unique values in column A that are blank in column D

correction: I need a formula to give the results in one cell, for example in cell E1 the result of unique values in column A that are blank in column D... and in cell E2 the result of unique values in column A that are not blank in column D
 
Upvote 0
3=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")7/1/2016=SUM(C3)
17=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")=COUNTIF(C1,">0")-R1C5
30=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")7/1/2016
32=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")7/1/2016
34=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")13/1/2016
46=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")11/1/2016
48=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")11/1/2016
48=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")11/1/2016
61=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")15/1/2016
62=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")
62=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")
63=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")15/1/2016
88=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")16/1/2016
3=COUNTIF(C1,RC1)=--AND(RC2>0,RC4="")

<tbody>
</tbody>

this is what you want to achieve. just paste it to you excel sheet, you shall see how it work
 
Last edited:
Upvote 0
1. Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-ISNUMBER($D$1:$D$13),$A$1:$A$13),$A$1:$A$13),1))

2. Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(ISNUMBER($D$1:$D$13),$A$1:$A$13),$A$1:$A$13),1))
 
Upvote 0
Sorry, it's not working

Can't threre be a fromula to paste in one single cell and give the result?

Do i need to do all that for every new record?

Please note that in my sheet there are no empty columns between the columns that contain numbers and dates
 
Upvote 0
1. Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-ISNUMBER($D$1:$D$13),$A$1:$A$13),$A$1:$A$13),1))

2. Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(ISNUMBER($D$1:$D$13),$A$1:$A$13),$A$1:$A$13),1))

It gives me an error message
 
Upvote 0
It gives me an error message

You should always say what message that is, but I presume it's #VALUE!. That would mean that you did not apply control+shift+enter correctly...

Control+shift+enter means: Press down the control and the shift keys at the same time while you hit the enter key. When done properly, Excel itself will put a pair of { and } around the formula.
 
Upvote 0
You should always say what message that is, but I presume it's #VALUE!. That would mean that you did not apply control+shift+enter correctly...

Control+shift+enter means: Press down the control and the shift keys at the same time while you hit the enter key. When done properly, Excel itself will put a pair of { and } around the formula.

I don't have English Windows, so the translation of the error message is: "The formula you typed contains an error"

I applied ctrl+shift+enter as you describe (and i also paid attention not to miss a bracket) but i always get the same error message
 
Upvote 0

Forum statistics

Threads
1,215,428
Messages
6,124,832
Members
449,190
Latest member
rscraig11

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