Count unique dates in a column

stepan1987

Board Regular
Joined
May 6, 2011
Messages
92
Guys,
Please advise a formula with which I can count the number of unique dates in a column? I bet there is one..

Thanks!
 

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.
Code:
@if(countif(a:a;"17.05.2011")=1;1;0)
 
Upvote 0
Guys,
Please advise a formula with which I can count the number of unique dates in a column? I bet there is one..

Thanks!

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

=SUM(IF(FREQUENCY(IF(A1:A5<>"",MATCH("~"&A1:A5,A1:A5&"",0)),ROW(A1:A5)-ROW(A1)+1),1))

Since you have just dates, the following would also suffice:

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

=SUM(IF(FREQUENCY(IF(A1:A5<>"",MATCH(A1:A5,A1:A5,0)),ROW(A1:A5)-ROW(A1)+1),1))

Adjust the range to suit.
 
Upvote 0
Thanks,
But first one does not suit as I will need the formula work after 17.05 as well..
And the second one somewhy makes my excel hang for 2 minutes))
any other suggestions?
 
Upvote 0
The formula I've given counts the number of unique dates within your column. Make sure you change the "A:A" bits to specifically match the range you wish to count... ie...

If your data range is A1-A10...

=sumproduct(1/countif(A1:A10,A1:A10))

Hope this helps

:)
 
Upvote 0
Aladin AKyurek, I actually picked the first formula yoe ve posted, the misunderstanding is due to a deferred response, thanks!
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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