![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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. |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Superhuman Computer
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2
|
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 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 Code:
=COUNT(A1:A50-B51) 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." |
|
|
|
|
|
#3 (permalink) |
|
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 |
|
|
|
|
|
#4 (permalink) |
|
Registered User
|
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. |
|
|
|
![]() |
| Thread Tools | |
|
|