LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Counting cells with duplicate values



"Carla" wrote:

I have a large file which I have downloaded from our company database. I
want to be able to count only the unique values in a specific column. Right
now there are blank cells and duplicate values. How do I do this?

You might find it useful to use Excel's Filter feature. For simplicity, copy and paste the specific column you want to work with into a new worksheet. Then go to Data, Filter, then Advanced Filter. Identify the column that you are working with in the List Range Column (e.g. $A$1:$A$157). I recommend selecting Copy to New Location and then selecting the Adjacent column (e.g. $B$1). Check the box for Unique records only then OK. Next use a simple =COUNT(B2:B17) function to get your count.


Note: Filter may count some cells that look the same as unique if there are
spaces before of after. One strategy may be to clean your data up using
trim into a new column then cut and paste these trimmed values only into a
new column.

I realize this is a less glamorous approach than a sophisticated formula,
but I have found this to be a simple to use workaround as a solution to
problems such as this.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
cntrl + down arrow and null values in cells Craig Excel Discussion (Misc queries) 2 October 26th 05 10:23 PM
Function to list values of last 3 non-blank cells in a vertical bl ANJ Excel Worksheet Functions 1 April 14th 05 12:53 AM
How To Use Cells Without Values in a Formula Roger H. Excel Worksheet Functions 2 April 6th 05 01:01 AM


All times are GMT +1. The time now is 10:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"