I was looking for a way to count unique values in column which may or may not contain blanks. I kept seeing references to the MOREFUNC Add-In, but I can't download it, so kept searching. At this post (http://www.mrexcel.com/forum/showthr...-CountDiff-VBA) Teemar posted a function which seems to do the trick; See below:
It's used like this:
The above code counts the unique values in the range A1:A100. My problem is that it counts blanks as a unique value also. So, for my columns that I know might have blanks I use it like this:
The problem is that I don't always know when a column has blanks, so I'd like some help in adapting this or a similar function to count only the non-blank unique values in a range. Any help is greatly appreciated.
Bookmarks