+ Reply to Thread
Results 1 to 7 of 7

Doubt in CountIf

  1. #1
    Registered User
    Join Date
    12-15-2008
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    7

    Doubt in CountIf

    Hi,

    I have the below requirement. I want to get a % of Pass Number in some range.

    Cell Adress Value
    A1 Pass
    B1 Pass
    C1 Fail

    As per the above i should get 99% as pass%. Pls help in this regard. Can i do with countif formula.

    Thanks
    Last edited by Gayucvns; 08-28-2009 at 09:22 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Doubt in CountIf

    Tr y this

    =COUNTIF(range;"pass")/COUNTA(range)

    But you get 66%, not 99?
    Never use Merged Cells in Excel

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Doubt in CountIf

    Hi
    look at the attached file...
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Doubt in CountIf

    Isn't it 66.7% ?

    If you want the number of passes as a percentage of total entries try like this

    =COUNTIF(A1:A10,"Pass")/COUNTA(A1:A10)

    format result cell as percentage

  5. #5
    Registered User
    Join Date
    12-15-2008
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    7

    Re: Doubt in CountIf

    Yes i got 66.67% only. But i have some dount if we get all pass then we are getting 100%...but i got 1 failed which means i should get 99%....Plesae correct me if im wrong.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Doubt in CountIf

    I correcting you

    You will get that only if you have 100 entries exactly.

    =COUNTIF(A1:A100,"Pass")/100

  7. #7
    Registered User
    Join Date
    12-15-2008
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    7

    Smile Re: Doubt in CountIf

    Hi Zbor,

    You are correct...i just understood that...i was bit confused....

    Thanks a lot for all the help !!

+ 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