+ Reply to Thread
Results 1 to 6 of 6

Counting cells that contain formulas when the formulas contain the result I want to count

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Post Counting cells that contain formulas when the formulas contain the result I want to count

    Attendance sample.xlsx

    In the attached spreadsheet, I want a formula for cell H27 that counts the number of students with perfect attendance, i.e. 5, without using and hiding an additional column. I have tried several ways of doing this using COUNTIF and other functions. However, because all of the formulas in column H use asterisks, *, the simple =COUNTIF(H2:H26,"*") returns 25, not 5.

    Feel free to change the other formulas in column H, so long as an asterisk, *, is displayed for a student with perfect attendance and nothing (either blank or the null string, "") is displayed for a student without perfect attendance. (I don't want to see TRUEs and FALSEs or 1's and 0's.)

    Please help.

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

    Re: Counting cells that contain formulas when the formulas contain the result I want to co

    Hi biga99 and welcome to the forum,

    In H27 put this formula:

    =25-COUNTIF(H2:H26,"")
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Counting cells that contain formulas when the formulas contain the result I want to co

    Thank you, MarvinP.

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

    Re: Counting cells that contain formulas when the formulas contain the result I want to co

    Hi biga99

    Your COUNTIF formula in post #1 should work, just add the tilde before your asterisk.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


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

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

    Re: Counting cells that contain formulas when the formulas contain the result I want to co

    Hi Kevin,

    You are absolutely correct about the tilde. See it and examples at http://office.microsoft.com/en-us/ex...005209029.aspx

    Great answer!!!

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

    Re: Counting cells that contain formulas when the formulas contain the result I want to co

    No promblem. Thank you MarvinP

+ 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