+ Reply to Thread
Results 1 to 3 of 3

Tallying Rows based on two different values in two different columns

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    5

    Tallying Rows based on two different values in two different columns

    THe answer to this is probably already posted somewhere, but I'm not finding it. I suspect it is quite simple...

    I want to tally the number of times two different values occur within a row. I'm doing fine with one value in one column by using:
    =COUNTIF('Master List'!$C$2:$C$20000,"ACT Score Report")

    Here is my attempt at getting a count of all rows that have a certain value in one column and another certain value in a second column
    =AND(COUNTIF('Master List'!$C$2:$C$20000, "ACT Score Report"),COUNTIF('Master List'!$E$2:$E$20000,"Cold"))

    With this I just get a "TRUE"

    Thanks in advance!!!

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Tallying Rows based on two different values in two different columns

    AND will only return a TRUE or FALSE. You need an IF or COUNTIF before
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Tallying Rows based on two different values in two different columns

    OK, that helped a bit, but now, with the following, it seems to be tallying everyone if they have one of the values OR the other value. Here is what reterned a value much higher than I should get:

    =COUNTIF('Master List'!$C$2:$C$20000, "ACT Score Report")
    +COUNTIF('Master List'!$E$2:$E$20000,"Cold")

    In other words, by adding the +COUNTIF I should be getting a subset of the =COUNTIF statement above.

    We're so close...thanks for your 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