Find the unique value "excluding empty cells"

Sam_D_Ben

Active Member
Joined
Oct 17, 2012
Messages
433
Office Version
  1. 2021
Platform
  1. Windows

Excel 2007
A
1Products
2Name1
3Name1
4Name1
5Name2
6Name2
7Name2
8
9Name3
10Name3
11Name3
Sheet1


Kindly find the above sample date; where i need to find the unique value "excluding empty cells" (In this its 3Nos). Like wise i got around lacs of datas getting updated daily; means the whole column"A" should be selected. Is there any way to get the count fast....i mean to reduce the calculation timings; Thansks in advance ....Muz:)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I am sorry Mr T Valko .... I mean 1 Million rows...! I am working in a telecom firm, At time i used to import datas from Ms.Access...Thats it. As sorry if it confused you:(

But the way ....the above formula is just confusing ...so am just watching that Youtube video...as per the request from Mr Vidar. Thank You:)
 
Upvote 0
I am sorry Mr T Valko .... I mean 1 Million rows...! I am working in a telecom firm, At time i used to import datas from Ms.Access...Thats it. As sorry if it confused you:(

But the way ....the above formula is just confusing ...so am just watching that Youtube video...as per the request from Mr Vidar. Thank You:)
OK, let me go test those formulas on 1 million rows of data...
OK, on my old gutless machine with 1 million rows of data...

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

Average calculation time (5 calculations) = 53.69 secs

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

Average calculation time (5 calculations) = 46.02 secs

The only difference in those formulas is the 1st formula concatenates the tilde and the blank.

There is a 99.999999% chance that you don't need to do that. You only need to do that if your data starts with "special" characters like < , *, >, =, ?.
 
Upvote 0
Anyways thanks Mr Valko...I am watching that Youtube video again and again ....its still confusing me. I'll come back once its done ...Thanks again ...Muz:)
 
Upvote 0

Forum statistics

Threads
1,223,968
Messages
6,175,677
Members
452,666
Latest member
AllexDee

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