Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 05-12-2006, 06:28 AM   #1 (permalink)
Registered User
 
Join Date: Sep 2005
Posts: 19
OS: XP


Counting Unique Records in Excel

Hi,

Is there a function that will allow you to count the number of individual entries in a column.

Say for instance a column as the following:

123
123
155
144
144
144

Can I get it to return a value of 3 to reflect that although there are 6 figures in the column, there is only 3 individual entries?

Cheers,

Bren.
BWA@CSFB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-12-2006, 06:52 AM   #2 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

There's a few ways of doing this depending on how much work you want to put in.

The first (and most manual method) is sorting the column into numeric order. In the column next to this, put the formula:

Code:
=IF(A1=A2,1,0)
(this assumes the data is in column A from cell A1 downwards)

This formula needs to go into cell B2, and autofilled downwards to the end of the data.

One cell below this new column, you need a formula showing:

Code:
=SUM(B2:B50)     'assuming you have 50 records
This shows how many duplicate entries there are. To the left of this, put this formula:

Code:
=COUNT(A1:A50-B51)
This will subtract the duplicate entries from the total entries.

Alternatively there's a method using the Advanced Filter functionality, but it's as cumbersome as the last method for no real benefit.

The final (and most automatic) method involves programming a custom VB function to do this for you. If the above method isn't good enough, let me know and I'll see what I can do for you.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-12-2006, 07:14 AM   #3 (permalink)
PRP
Registered User
 
Join Date: May 2006
Posts: 86
OS: xp


Hello!!!

Hello,

1) Add extra row above ur all datas Say DATA1 as shown below:

DATA1
123
123
155
144
144
144

2) Sort DATA1 in Ascending order

3) After Sorting, go to "Subtotal" in Data menu
Now you will see,

At each change in : DATA1
Use Function : Count

Say OK

You will see the result that you wanted,

Cheers,

P R PATEL
PRP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-16-2006, 03:00 AM   #4 (permalink)
Registered User
 
dheerajnagpal's Avatar
 
Join Date: Mar 2005
Location: Sydney
Posts: 48
OS: Win XP-Prof SP2

My System

Send a message via Yahoo to dheerajnagpal
A better way to count the number of unique entries is

enter all entries in a column, need not be in sorted order
at bottom, in a blank cell, press F2 to go in edit mode,
enter the formula
=SUM(IF(FREQUENCY(A3:A25, A3:A25)>0,1))
assuming that A3:A25 is the range.
Then press CTRL + SHIFT + RETURN
Remember to use CTRL and SHIFT as this makes it an array formula instead of a cell formula. You will get the count of unique number of items in the column

Cheers
Dheeraj
__________________
Courage doesn’t always roar. Sometimes it is the feeble voice at the end of the day that says “I will try again tomorrow”

Last edited by dheerajnagpal; 05-16-2006 at 03:05 AM.
dheerajnagpal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




All times are GMT -7. The time now is 01:32 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85