+ Reply to Thread
Results 1 to 5 of 5

Help, Countif

  1. #1
    Registered User
    Join Date
    02-02-2023
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    2

    Help, Countif

    I had this spreadsheet set up with just straight yes or no or na answers, and it worked fine, but then they filled out the sheet with y or n and some did yes or no and of course the formulas didn't work correctly. Is there a way for this formula to find the correct percentage possible if they do one way or the other or both ways?
    Attached Files Attached Files

  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,704

    Re: Help, Countif

    Try this formula in C34:

    =IFERROR(COUNTIF(C2:C31,"*y*")/COUNTIF(C2:C31,"<>"),"")

    then copy across as required. It will return the %age of YES, or yes, or Y or y (or even Yeah !) entries compared to the count of all non-empty entries in the column.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Help, Countif

    Try

    =SUM(COUNTIF(D2:D31,{"Y","yes"}))

    =SUM(COUNTIF(D2:D31,{"N","no"}))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    02-02-2023
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    2

    Re: Help, Countif

    Thank you so much Pete, it works - I don't understand how, but I'll take it!!!

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

    Re: Help, Countif

    Glad to help, Michele.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. [SOLVED] COUNTIF and SUMPRODUCT. Multiply each row with COUNTIF if the condition is met.
    By Fishtail in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2023, 04:29 PM
  2. [SOLVED] Countif on visible cells only & Countif from a cell with multiple entry
    By MushroomJ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-26-2021, 05:37 AM
  3. [SOLVED] Help with countif formula for calendar (countif any date in table present)
    By KMJ256388 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2021, 12:11 PM
  4. Replies: 5
    Last Post: 08-12-2020, 05:33 PM
  5. Adding a COUNTIF function to an existing IF AND COUNTIF Formula...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2018, 10:09 AM
  6. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  7. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM

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