AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Craig
Expertise
I can answer most general questions, including formatting, shortcuts, pivot tables etc. I have just started using macros, so vba is not my strong suit. I also enjoy explaining the solution at the questioners level of understanding. I am an accountant by trade, so that is my primary area of expertise, but I am willing to tackle just about anything.

Experience
10 years

Education/Credentials
BA - Business '96, CPA '98

 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > Using Count in Excel

Excel - Using Count in Excel


Expert: Craig - 10/8/2008

Question
Sorry for the basic question, but I am really new to excel.  I need to count the number of times a number appears in a column(i.e, my column 'D'..the #4 appears x number of times, the #5 appears x number of times, etc).  Column 'D' is assorted in ascending order.  How do I use the count function to count the number of times each number appears?  Thanks.

Answer
Hi Fred,

You actually don't need to have column 'D' sorted in any order.  Assuming your column is 500 numbers long, D1 to D500:

You'll actually want to use the COUNTIF function.

For each of your numbers, you'll set up a formula like this:

=COUNTIF($D$1:$D$500,4)

Where D1 to D500 is your range and 4 is the criteria to match.



Hope this helps,

-Craig

Add to this Answer   Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.