+ Reply to Thread
Results 1 to 7 of 7

I need to count number of cells with numbers ignoring blanks & #n/a cells

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    22

    I need to count number of cells with numbers ignoring blanks & #n/a cells

    Hi,

    I have the following data:

    Excel Data 2.JPG

    What I need to is be able to count the number of cells in each column with numbers only. For example C10:C13 should equal 1 and F10:F13 should total 0. I currently am using the following formula to ignore the #n/a cells: =SUM(IF(ISERROR(C10:C13),"",C10:C13))

    It does however count blank cells which I do not want it to do.

    Any help is much appreciated.

    Thanks,

    Drew.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    you could try =COUNTIF(A1:A3,"<>#N/A") and adjust your range.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-25-2012
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    This still counts the blank cells. How do I prevent this?

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    May be excel treating the blanks as zeros post a sample in excel..

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Click just below left if it helps, Boo?ath?

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    Have you tried
    Please Login or Register  to view this content.

    Alf

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    As Alf noted a straight count should work for you, it ignores blanks and #N/A.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: I need to count number of cells with numbers ignoring blanks & #n/a cells

    You can also use SUMPRODUCT function

    =SUMPRODUCT(--(ISNUMBER(A1:C4)))

    Row\Col
    A
    B
    C
    1
    #N/A
    32
    8
    2
    5
    #N/A
    17
    3
    14
    #N/A
    4
    #N/A
    2
    24
    5
    6
    7
    7
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. SUM last 6 cells with data (ignoring blanks in between)
    By cjohnwalsh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2014, 08:24 AM
  2. sum cells ignoring ones with blanks
    By kiwiingrid in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-04-2012, 06:03 PM
  3. copy cells ignoring blanks
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 10:35 AM
  4. Average ignoring Blanks cells
    By Justinmih in forum Excel General
    Replies: 10
    Last Post: 09-30-2011, 06:21 PM
  5. Excel 2007 : sum cells ignoring blanks and text
    By mickurje in forum Excel General
    Replies: 2
    Last Post: 07-04-2010, 03:00 PM

Tags for this Thread

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