+ Reply to Thread
Results 1 to 8 of 8

Multiple COUNTIF Statements

  1. #1
    Registered User
    Join Date
    09-16-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    30

    Multiple COUNTIF Statements

    I am trying to do what I believe is a simple multiple COUNTIF statement. The cells in column A are formatted as “General.” They will either contain an “x” or a “/”.
    The “x” will equal a value of 1 and the “/” will equal a value of .5.
    I can equate these values if I use a single COUNTIF statement. For example:
    =COUNTIF(A2:A30,”x”) or I can use =COUNTIF(A2:A30,”x”)*1 to get a value of 1 for every “x” counted.
    I can use =COUNTIF(H2:H32,"/")/2 to get a value of 0.5 for every “/” counted.
    How can I combine these two statements for the same column so that if there are two “x’s” and one “/”, my result will be 2.5?

    Thanks,

    Kirk

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple COUNTIF Statements

    Please Login or Register  to view this content.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-16-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Multiple COUNTIF Statements

    That didn't work.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,615

    Re: Multiple COUNTIF Statements

    Can you upload example?

  5. #5
    Registered User
    Join Date
    09-16-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Multiple COUNTIF Statements

    Here is an example showing the results separately.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-16-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Multiple COUNTIF Statements

    I figured it out. The formula is:
    =COUNTIF(H2:H32,"x")+COUNTIF(H2:H32,"/")*1*0.5

  7. #7
    Registered User
    Join Date
    09-16-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Multiple COUNTIF Statements

    Oops! I meant to type:
    =COUNTIF(A2:A32,"x")+COUNTIF(A2:A32,"/")*1*0.5

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,615

    Re: Multiple COUNTIF Statements

    Same as Chemist wrote you

+ 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