+ Reply to Thread
Results 1 to 4 of 4

Countif Help in Excel

  1. #1

    Countif Help in Excel

    I need help creating a formula in MS Excel.


    All the data in column "F" (F3 to F20) is recorded as a color for
    example "BURG", "COFFEE", "WHITE", etc. And column "C" (C3 to C20) is
    recorded as "CL2", "OP3", "THB", etc which are code names for homes.

    I need a formula to know how many times "CL2" selected the color
    "BURG". I believe to do this you have to use a COUNTIF formula but i
    just cant figure the formula out. I can count to see how many BURG
    there are but i cant do both.

    The formula i started off using is =COUNTIF(F3:F20, "BURG") which gives
    me the correct count of BURG but how do i add the second criteria?

    Any ideas?


  2. #2
    John C. Harris, MPA
    Guest

    Re: Countif Help in Excel

    you can't put it in the same cell. You need to put the same formula with the
    CounIf parameters changed in another cell for the other parameters.

    --
    John C. Harris, MPA
    JCZ Consulting Services, LLC
    <[email protected]> wrote in message
    news:[email protected]...
    >I need help creating a formula in MS Excel.
    >
    >
    > All the data in column "F" (F3 to F20) is recorded as a color for
    > example "BURG", "COFFEE", "WHITE", etc. And column "C" (C3 to C20) is
    > recorded as "CL2", "OP3", "THB", etc which are code names for homes.
    >
    > I need a formula to know how many times "CL2" selected the color
    > "BURG". I believe to do this you have to use a COUNTIF formula but i
    > just cant figure the formula out. I can count to see how many BURG
    > there are but i cant do both.
    >
    > The formula i started off using is =COUNTIF(F3:F20, "BURG") which gives
    > me the correct count of BURG but how do i add the second criteria?
    >
    > Any ideas?
    >




  3. #3
    RagDyeR
    Guest

    Re: Countif Help in Excel

    Say you enter the home code you're looking for in E1,
    And the color in E2,

    Then try this:

    =SUMPRODUCT((C3:C20=E1)*(F3:F20=E2))

    --

    HTH,

    RD
    =====================================================
    Please keep all correspondence within the Group, so all may benefit!
    =====================================================

    <[email protected]> wrote in message
    news:[email protected]...
    I need help creating a formula in MS Excel.


    All the data in column "F" (F3 to F20) is recorded as a color for
    example "BURG", "COFFEE", "WHITE", etc. And column "C" (C3 to C20) is
    recorded as "CL2", "OP3", "THB", etc which are code names for homes.

    I need a formula to know how many times "CL2" selected the color
    "BURG". I believe to do this you have to use a COUNTIF formula but i
    just cant figure the formula out. I can count to see how many BURG
    there are but i cant do both.

    The formula i started off using is =COUNTIF(F3:F20, "BURG") which gives
    me the correct count of BURG but how do i add the second criteria?

    Any ideas?



  4. #4
    JE McGimpsey
    Guest

    Re: Countif Help in Excel

    One way:

    =SUMPRODUCT(--(C3:C20="CL2"),--(F3:F20="BURG"))

    (See http://www.mcgimpsey.com/excel/doubleneg.html for an explanation of
    the "--")

    If you're interested in knowing the counts of all the combinations, you
    can't beat a pivot table:

    http://peltiertech.com/Excel/Pivots/pivotstart.htm



    In article <[email protected]>,
    [email protected] wrote:

    > I need help creating a formula in MS Excel.
    >
    >
    > All the data in column "F" (F3 to F20) is recorded as a color for
    > example "BURG", "COFFEE", "WHITE", etc. And column "C" (C3 to C20) is
    > recorded as "CL2", "OP3", "THB", etc which are code names for homes.
    >
    > I need a formula to know how many times "CL2" selected the color
    > "BURG". I believe to do this you have to use a COUNTIF formula but i
    > just cant figure the formula out. I can count to see how many BURG
    > there are but i cant do both.
    >
    > The formula i started off using is =COUNTIF(F3:F20, "BURG") which gives
    > me the correct count of BURG but how do i add the second criteria?
    >
    > Any ideas?


+ 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