+ Reply to Thread
Results 1 to 5 of 5

Count Cells with Unique TRUE value IF Statements

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Count Cells with Unique TRUE value IF Statements

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have the above IF statement that returns a unique string if true, and returns "" if false so the cell is blank.

    I want to count the cells that contain a TRUE value output. My thought was to subtract the =COUNTA output from the total # cells, but since all cells contain an IF statement, =COUNTA won't work. I thought about =COUNTIF, but the strings are all unique, so that wouldn't work either.
    What is the workaround?

    Hoping for a non-VBA solution.

    Thanks in Advance!
    Last edited by Mr_Ekid; 05-05-2017 at 12:39 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,855

    Re: Count Cells with Unique TRUE value IF Statements

    Assuming that your if formulas in Column K. Put below in another column.
    =COUNTIF(K1:K22,"?*")

    It will only count a cell that has a character or more.

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Count Cells with Unique TRUE value IF Statements

    Thank you, this is exactly what I was looking for. I marked it solved.
    Do you mind explaining the significance/function of the ?* operator.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,855

    Re: Count Cells with Unique TRUE value IF Statements

    "?" = Stands for any single character in string expression
    "*" = Any string

    So "?*" stands for single character followed by any length of character.

  5. #5
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Count Cells with Unique TRUE value IF Statements

    Thank you! Have a good weekend!

+ 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. Count how many unique name are true
    By joshka89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2016, 06:05 PM
  2. Count # Cells Until Next TRUE/1 Value is Found
    By thisismyname2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-25-2015, 07:19 PM
  3. [SOLVED] Count Unique Numbers with IF statements
    By jj554 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2012, 02:46 AM
  4. Replies: 1
    Last Post: 11-19-2012, 12:04 PM
  5. [SOLVED] changing a current mod (count unique visible cells ->count unique visible cells criteria
    By liranbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2012, 03:58 AM
  6. Count only if 2 cells are True on a second sheet
    By matrixpom in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 10:56 PM
  7. Count Function on True Statements
    By krayziez in forum Excel General
    Replies: 6
    Last Post: 05-29-2006, 11:29 AM

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