+ Reply to Thread
Results 1 to 5 of 5

Making countif function produce blanks as opposed to 0's

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    11

    Making countif function produce blanks as opposed to 0's

    I am using a countifs function to count items for me. Is there a way to make the output produce a blank as opposed to a 0? Any help much appreciated

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Making countif function produce blanks as opposed to 0's

    One way is to use this arrangement:

    =IF(your_formula = 0,"",your_formula)

    However, a quicker way is just to apply a custom format to the cell, using this string:

    0;;

    This causes zero to appear as a blank.

    There are other ways ...

    Hope this helps.

    Pete

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Making countif function produce blanks as opposed to 0's

    welcome to the forum, njw499. the 1 other way is if your COUNTIF is:
    =COUNTIF(A:A,"abc")

    then:
    =IFERROR(1/(1/COUNTIF(A:A,"abc")),"")

    the red part is where you should put in your formula

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Making countif function produce blanks as opposed to 0's

    Another way is to use conditional formatting to set the foreground colour to white (on a white background) if the cell value is zero.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Making countif function produce blanks as opposed to 0's

    custom format also??

    [=0]"";General
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. Making COUNTIF Function Case-Sensitive for any string
    By p4carr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 05:22 PM
  2. Countif function counts blanks
    By ckenn134 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-27-2013, 03:31 PM
  3. [SOLVED] Making a list with blanks?
    By colourxpalette in forum Excel General
    Replies: 2
    Last Post: 05-31-2012, 03:47 PM
  4. Replies: 1
    Last Post: 07-10-2009, 12:48 AM
  5. [SOLVED] COUNTIF-how do I count the quantity of 'H', as opposed to 'h'?
    By Suza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2006, 10:45 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