+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : return a count in one column based on if a specified value is in another column

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Truckee, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    return a count in one column based on if a specified value is in another column

    Thanks in advance for any help.

    Have a number of rows that have an x in one of three columns (accept, reject, revision) and the state in another column. I need a count of the number of times x appears in the accept, reject and revision columns based on the state (cells with ?).

    Order # State Accept Reject Revision
    2345234 CA x
    242345 MI x
    234555 CA x
    6543332 TX x
    123453 AZ x
    334523 CA x
    74332 TX x
    State Total Findings Accept Reject Revision
    AZ =COUNTIF(B2:B8,"az") ? ? ?
    CA =COUNTIF(B2:B8,"ca") ? ? ?
    MI =COUNTIF(B2:B8,"mi") ? ? ?
    TX =COUNTIF(B2:B8,"tx") ? ? ?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: return a count in one column based on if a specified value is in another column

    =countifs($B$2:$B$8,$A12,C$2:C$8,"x")

    copied down and across... assumes the first state, "AZ" is in A12
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: return a count in one column based on if a specified value is in another column

    The correct is
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    With A12 contains "AZ"
    Copy down for other states
    Quang PT

  4. #4
    Registered User
    Join Date
    02-03-2012
    Location
    Truckee, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: return a count in one column based on if a specified value is in another column

    Great. Thank 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