+ Reply to Thread
Results 1 to 4 of 4

Ignore Blanks and Zeros

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Cleveland, Ohio
    MS-Off Ver
    2010
    Posts
    7

    Ignore Blanks and Zeros

    I have this,

    {=ROWS($A$140:$A$249)-SUM(IF(COUNTIF($A$140:$A$249,$A$140:$A$249)=1,1,0))}

    How do I exclude counting blanks and zeros?


    Thanks!
    Last edited by Alan_Bernardo; 01-01-2017 at 11:41 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,003

    Re: Ignore Blanks and Zeros

    Try this:

    {=ROWS($A$140:$A$249)-SUM(IF(COUNTIFS($A$140:$A$249,$A$140:$A$249,$A$140:$A$249,"<>0")=1,1,0))}
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Ignore Blanks and Zeros

    Quote Originally Posted by Alan_Bernardo View Post
    {=ROWS($A$140:$A$249)-SUM(IF(COUNTIF($A$140:$A$249,$A$140:$A$249)=1,1,0))}

    How do I exclude counting blanks and zeros?
    Explain what you're wanting that formula to do.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-15-2014
    Location
    Cleveland, Ohio
    MS-Off Ver
    2010
    Posts
    7

    Re: Ignore Blanks and Zeros

    The formula is preparing a long list of data for data patterns and analyses, and also doing a general count, section by section.

+ 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. VBA code finds blanks, but how to write VBA to ignore non blanks?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:51 AM
  2. Small - Ignore zeros
    By pauldaddyadams in forum Excel General
    Replies: 6
    Last Post: 07-05-2015, 05:02 PM
  3. [SOLVED] How can I use min function with ignore zeros
    By migdad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2013, 06:17 AM
  4. Minimum value, ignore zeros
    By anmck in forum Excel General
    Replies: 1
    Last Post: 03-31-2009, 04:25 PM
  5. Ignore zeros in charting
    By Tom_Fernley in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-23-2008, 04:01 AM
  6. Get Excel to ignore the first 4 zeros
    By Badvgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2007, 06:39 PM
  7. Ignore blanks or zeros
    By gil0730 in forum Excel General
    Replies: 1
    Last Post: 02-03-2005, 12:12 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