Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

User-Defined Function to Determine Content of Cells in a Range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RBohannon - 02 Jun 2005 16:50 GMT
I'm familiar with VBA, but I have never written VBA in Excel.

I have a worksheet that contains personal data on employees.  Some
fields have codes that I need to find the sum of, for example for the
field ECode (column C) I need to count how many are "0", "1", "2", etc.

How would I write a function to count how many of a particular code
there are in a given range, say C6:C520?

Thanks.
RBohannon - 02 Jun 2005 16:56 GMT
I just found the COUNTIF function.  It does exactly what I need.  I was
sure there must be a built-in function, I just wasn't sure what to look
for.
JE McGimpsey - 02 Jun 2005 16:57 GMT
Do you need a UDF?

Try

   =COUNTIF(C6:C520,0)

> I'm familiar with VBA, but I have never written VBA in Excel.
>
[quoted text clipped - 4 lines]
> How would I write a function to count how many of a particular code
> there are in a given range, say C6:C520?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.