Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Counting cells with duplicate values

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?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Counting cells with duplicate values

Try creating a pivot table with the data an dragging the column of interest
into the row region of the table. Using the layout feature in the pivot
table wizard will make it a little easier.

Regards...

"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?


  #3   Report Post  
Posted to microsoft.public.excel.misc
E10 E10 is offline
external usenet poster
 
Posts: 14
Default Counting cells with duplicate values

Data---Filter---Advanced Filter

"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?


  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Counting cells with duplicate values

I use Jim Cone's fine commercial Add-in for things like this. It's available
at

http://www.realezsites.com/bus/primitivesoftware/

hth
Vaya con Dios,
Chuck, CABGx3




"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?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Counting cells with duplicate values

With data in A1 to A100, try this:

=SUMPRODUCT((A1:A100<"")/COUNTIF(A1:A100,A1:A100&""))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Carla" wrote in message
...
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?





  #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.
Reply
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 04:17 PM.

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"