+ Reply to Thread
Results 1 to 4 of 4

Countif formula - percentage

  1. #1
    Registered User
    Join Date
    02-09-2006
    Posts
    2

    Countif formula - percentage

    Hi,

    I'm new here and I hope I'm posting in the right forum. I require help with a formula that has left me scratching my head for a couple of hours.

    I have a column of data cells that lists 3 different options, for example:

    option1 = Good
    option2 = Ok
    option3 = Bad

    i need a formula that will count how many 'Good' entries there are and to work it out as a percentage of the total number of entries (all 3 options).

    I hope that makes sense. If more info is required, please let me know.

    Thanks for your time

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Assuming your data range is A1:A100 try

    =COUNTIF(A1:A100,"good")/MAX(1,COUNTA(A1:A100))

    format as percentage

  3. #3
    JE McGimpsey
    Guest

    Re: Countif formula - percentage

    One way:

    =COUNTIF(A:A,"Good")/COUNTA(A:A)

    format the cell as a percentage.

    In article <godonlyknows.22yq1a_1139489400.8201@excelforum-nospam.com>,
    godonlyknows
    <godonlyknows.22yq1a_1139489400.8201@excelforum-nospam.com> wrote:

    > Hi,
    >
    > I'm new here and I hope I'm posting in the right forum. I require help
    > with a formula that has left me scratching my head for a couple of
    > hours.
    >
    > I have a column of data cells that lists 3 different options, for
    > example:
    >
    > option1 = Good
    > option2 = Ok
    > option3 = Bad
    >
    > i need a formula that will count how many 'Good' entries there are and
    > to work it out as a percentage of the total number of entries (all 3
    > options).
    >
    > I hope that makes sense. If more info is required, please let me know.
    >
    > Thanks for your time


  4. #4
    Registered User
    Join Date
    02-09-2006
    Posts
    2
    Quote Originally Posted by daddylonglegs
    Assuming your data range is A1:A100 try

    =COUNTIF(A1:A100,"good")/MAX(1,COUNTA(A1:A100))

    format as percentage
    I think that's it. Thank you very much.

+ 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