+ Reply to Thread
Results 1 to 8 of 8

COUNTIF Statement ignore blanks

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2014
    Location
    USA
    MS-Off Ver
    MAC
    Posts
    7

    COUNTIF Statement ignore blanks

    Okay I have another issue

    I have working formula

    =IF(COUNTIF('Tab2'!P40:P58,"Fully Meets Expectation"),"DOES MEET","DOES NOT MEET")

    However I need it ignore blanks so I tired to below but it did not work....please help....need a correct formula

    Not working formula:
    =IF(AND('Tab2!P40:P58<>""),IF(COUNTIF(Tab2!P40:P58,"Fully Meets Expectation"),"DOES MET","DOES NOT MEET"))

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: COUNTIF Statement ignore blanks

    If you have a more recent version of Excel, you could try using COUNTIFS. Alternatively, you can use SUMPRODUCT.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: COUNTIF Statement ignore blanks

    Upload a small sample file with desensitized data; show what you are working from and show the results you expect...typed in manually if necessary.

    To upload a sample spreadsheet file:

    Click 'Reply to Thread', click 'Go Advanced', scroll down and click 'Manage Attachments'. When you are done uploading click 'Done'.

  4. #4
    Registered User
    Join Date
    10-12-2014
    Location
    USA
    MS-Off Ver
    MAC
    Posts
    7

    Re: COUNTIF Statement ignore blanks

    I am using a Mac.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: COUNTIF Statement ignore blanks

    Do you mean that every non-blank cell in the range has to say "Fully Meets Expectation" for "DOES MEET" to be returned? What are the other possible text values in that range, are there many?
    Audere est facere

  6. #6
    Registered User
    Join Date
    10-12-2014
    Location
    USA
    MS-Off Ver
    MAC
    Posts
    7

    Re: COUNTIF Statement ignore blanks

    Its a questionnaire and I have 3 columns for answering however only 2 columns of answer is required. If the questionnaire has only 2 columns answered I want it to ignore that column 3 was blank and the output is Does Meet.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: COUNTIF Statement ignore blanks

    I am using a Mac
    Yes, your profile says that. Is it a recent version? Does it have COUNTIFS?

  8. #8
    Registered User
    Join Date
    10-12-2014
    Location
    USA
    MS-Off Ver
    MAC
    Posts
    7

    Re: COUNTIF Statement ignore blanks

    Yes it does.

+ 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. If Statement, ignore blanks
    By shanikakbrown in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2014, 05:34 PM
  2. [SOLVED] Modifying =IF statement to ignore blanks
    By mrjinx007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2013, 10:05 AM
  3. [SOLVED] MIN/MAX IF To Ignore Blanks
    By splendidus in forum Excel General
    Replies: 2
    Last Post: 07-04-2012, 04:00 PM
  4. Ignore blanks when using COUNTIF
    By mattmac in forum Excel General
    Replies: 3
    Last Post: 05-27-2011, 04:56 AM
  5. Ignore blanks using =SUMIF/COUNTIF
    By Casper9T9 in forum Excel General
    Replies: 10
    Last Post: 06-05-2009, 05:26 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