+ Reply to Thread
Results 1 to 2 of 2

Count number of occurrences conditionally on adjacent cells

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    1

    Count number of occurrences conditionally on adjacent cells

    I’m trying to create a formula in Excel 2010 that will count the total number of cells with a value greater than 0 conditionally on the value of an adjacent cell. In the example below, I would want to know that John Doe has 4 accounts that submitted more than 1 item and Sally Smith has 3 accounts with more than 1 submission.

    Sheet 1
    Account Num Account Representative Number Submitted
    1 John Doe 5
    2 John Doe 0
    3 John Doe 1
    4 John Doe 2
    5 John Doe 3
    6 John Doe 0
    7 Sally Smith 0
    8 Sally Smith 3
    9 Sally Smith 5
    10 Sally Smith 0
    11 Sally Smith 2

    Sheet 2
    Account Representative Total accounts submitting at least One Item
    John Doe <Formula-?>
    Sally Smith <Formula-?>

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Count number of occurrences conditionally on adjacent cells

    toehrtman,

    Welcome to the forum!
    It sounds to me like you want the CountIfs() formula. Attached is an example workbook based on the criteria you provided. In Sheet2 cell B2 and copied down is this formula:
    =COUNTIFS(Sheet1!$B$2:$B$12,A2,Sheet1!$C$2:$C$12,">0")
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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