+ Reply to Thread
Results 1 to 10 of 10

Problem with using countifs

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Jersey City, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    14

    Smile Problem with using countifs

    I cant seem to get the function below to work. Basically, I am trying get count if the value in one cell in another sheet is either "Yes" or "na". I do have a work-around using sum of separate countif statements but would like to know why the function below is not working for me.

    Thanks in advance.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Problem with using countifs

    You don't add the range which need to count.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Problem with using countifs

    Hi alb2p,

    Your formula looks like you want to count all the cells that have "Yes" in them and at the same time have "na" in them. I'd expect you get an answer of zero.
    What do you expect as an answer?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-07-2013
    Location
    Jersey City, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Problem with using countifs

    Hello MarvinP - I tried using OR but that did not work either (see below). the expected answer is to count if the cell is either "Yes" or "na".

    Please Login or Register  to view this content.
    Hello oeldere - isnt the syntax for COUNTIFS - =countifs(criteria_range1,criteria,[criteria_range2,criteria],......)
    Last edited by alb2p; 01-11-2013 at 02:36 PM.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Problem with using countifs

    Hi alb2p

    How about:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Forum Contributor
    Join Date
    07-03-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Problem with using countifs

    How about:-

    =COUNTIF(Sheet1!G2:G69,"Yes")+COUNTIF(Sheet1!G2:G69,"N/A")

    I may have completly misread the OP requirment here

    Regards

  7. #7
    Registered User
    Join Date
    01-07-2013
    Location
    Jersey City, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Problem with using countifs

    Hello Kevin - This worked brilliantly!!! Thanks.

  8. #8
    Registered User
    Join Date
    01-07-2013
    Location
    Jersey City, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Problem with using countifs

    Hello crispybadger - I tried this as well and it also worke. Thank you very much.

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Problem with using countifs

    You can also use this version

    =SUM(COUNTIF(Sheet1!G2:G69,{"Yes","na"}))
    Audere est facere

  10. #10
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Problem with using countifs

    Hi alb2p

    Thanks for the feed back.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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