+ Reply to Thread
Results 1 to 6 of 6

Is this a complicated countifs formula or something else?

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Is this a complicated countifs formula or something else?

    I really have no idea how to do this, could anyone please help me? It's a bit challenging.

    I have three columns like this:

    Yes No No
    No Yes No
    Yes Yes No
    No No Yes
    No No No


    I need a formula that can tell me how many rows have a Yes in them, but NOT to total all the Yes's. Something like "Is there a Yes in the first column? No. Okay, is there a Yes in the second column? Yes. Okay, next row".

    Or, I was thinking maybe a formula for each row that returns a 1 for each row that has a Yes in it, and then add up all the 1s. The only problem with that is it creates another column, unless there is a way to make a column invisible?

    So the automatically calculated result for this table should be 4.

    Thanks for the help, I'm fairly new with excel.
    Last edited by eefen; 05-02-2012 at 11:24 PM. Reason: changed title

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Best formula to use?

    Hi eefen,

    Suggest you to please change the title of your thread to describe the query being asked ... see the forum rules :-

    http://www.excelforum.com/forum-rule...rum-rules.html

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Best formula to use?

    Sorry, I tried to be descriptive but I have no idea what type of formula to call it. I don't know if its COUNTIF, COUNTIFS, VLOOKUP, or what. And if I said the wrong formula I didn't want to be misleading. I'll think of something...

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Is this a complicated countifs formula or something else?

    Thanks eefen ...

    You can use the formula :-

    =IF(COUNTIF(A1:C1,"Yes")>=1,1,0)

    Counting yes.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    08-22-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Is this a complicated countifs formula or something else?

    Ah, thanks! I would not have figured that out on my own. And so now I can just hide that column, easy.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Is this a complicated countifs formula or something else?

    Yes.. You can hide that extra formula column and good to go...
    Make sure you move the sum formula to other column if you want to see that ...

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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