+ Reply to Thread
Results 1 to 9 of 9

count cells

  1. #1
    Registered User
    Join Date
    01-16-2008
    Location
    Essex
    Posts
    25

    count cells

    Hi

    I need to count the numers in cells AI6:AI46 but some of these cells contain #DiV0! as the formlars in these cells do not have actual numbers as no data has been gathered (correct)

    Can anyone help please
    Thank you,
    Jackie

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    count cells

    If you want to count the numbers in those cells,

    try this:
    Please Login or Register  to view this content.
    If you want to count all non-blank, non-error values:
    Please Login or Register  to view this content.
    The COUNT function ignores text and errors.
    The COUNTA function ignores errors.

    Does that help?
    or do you have a different issue?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-16-2008
    Location
    Essex
    Posts
    25

    count cells

    the cells contain numbers in some from formulas in them e.g.
    A
    2
    3
    5
    0
    1
    #Div0!
    0
    1
    #Div0!

    so I want all the numbered cells to be counted- in this case should add up to 12

    Thanks

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    count cells

    We must be having a terminology issue.
    To me, you count numbers by determining how many numbers exist.
    In the below values...there are 2 numbers.
    Alpha
    5
    10
    Bravo

    If you mean something else, please clarify.
    And...post the formula you are using (even if it doesn't work).

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read the forum rules below and the 2 x messages I've sent you then add the links to the cross posts or this thread will be closed for breaking the rules & ignoring a mod

    VBA Noob
    Last edited by VBA Noob; 08-25-2008 at 01:55 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    SUM all non-Div/0! cells

    Ok...I understand...
    you don't want to "count" the numbers....
    you want to exclude error cells from the sum.

    Try one of these....

    If the only errors will be DIV/0, then
    Please Login or Register  to view this content.
    But, if there may be other errors (eg #N/A, etc), then
    use this ARRAY FORMULA, committed with CTRL+SHIFT+ENTER
    (instead of just ENTER):
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-16-2008
    Location
    Essex
    Posts
    25

    count cells

    oh thanks gonna give that a try now

  9. #9
    Registered User
    Join Date
    01-16-2008
    Location
    Essex
    Posts
    25

    count cells

    wow that worked a treat

    Thanks loads

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count including Blank Cells
    By bhofsetz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-17-2015, 02:11 PM
  2. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 AM
  3. count contiguous cells that are identical?
    By dlh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2008, 04:37 PM
  4. How To Use The Count Function Like This?
    By atech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2008, 11:36 PM
  5. Count value for formula cells returning a value
    By guest123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2007, 06:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1