+ Reply to Thread
Results 1 to 5 of 5

% of true and false excluding blank cells

  1. #1
    Registered User
    Join Date
    12-08-2022
    Location
    Virginia
    MS-Off Ver
    2022
    Posts
    4

    % of true and false excluding blank cells

    I have multiple columns with multiple "do the cells match" scenarios and I'm wanting to get a summary in % and total count for each of the rows.

    My logic was to write a bunch of true/false formulas and then another formula to count up the "true" and "false" to get a percentage. I also built in some exclusion criteria where the true/false formula will return a "" when the criteria is not met. The problem I'm having is that I'm not sure how to exclude the blanks from the total count to get a %

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: % of true and false excluding blank cells

    Administrative Note:

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: % of true and false excluding blank cells

    Count TRUE:

    =COUNTIF(AA3:AA21,1)

    Count FALSE:

    =COUNTIF(AA3:AA21,0)

    Percentage TRUE:

    =COUNTIF(AA3:AA21,1)/ROWS(AA3:AA21)

    Format as percent.

    There are no blank cells.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: % of true and false excluding blank cells

    1s and 0s are easier so i would change the true and false as below

    easiest
    i3 =IF(AND(B3=C3,C3=D3),1,0) etc and copy down

    then you can just average this to get the %
    =average(I3:I21)

    if you insist on true and false and are concerned about the demoninator countif(true)/(countif(false)+countif(true))


    columns y to am could be not required if you change the formulas you have replacing "True" with 1 and "FALSE" with 0, this could even be done with a find and replace on the range I3:W21
    Last edited by davsth; 02-23-2024 at 11:03 AM.

  5. #5
    Registered User
    Join Date
    12-08-2022
    Location
    Virginia
    MS-Off Ver
    2022
    Posts
    4

    Re: % of true and false excluding blank cells

    Thank you!!!

+ 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. True or false formula giving wrong result for null and blank values
    By aniletc37 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2016, 04:20 AM
  2. [SOLVED] How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data
    By MaeglinBC3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-22-2015, 09:28 AM
  3. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  4. Multiple True or False + Sum of corresponding cells
    By CheezZZ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2013, 10:18 AM
  5. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  6. True/False Function, ignore blank
    By cicihk in forum Excel General
    Replies: 2
    Last Post: 11-15-2010, 03:20 AM
  7. True/False on whether a cell is blank or not
    By krayziez in forum Excel General
    Replies: 1
    Last Post: 06-06-2008, 02:36 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