+ Reply to Thread
Results 1 to 3 of 3

countif using 2 variables

  1. #1
    Registered User
    Join Date
    07-30-2007
    Posts
    12

    countif using 2 variables

    Hi,
    I have read in the forum that this can usually be done using sumproduct, but can't work out how to do this using names and values.

    I have names in column A, and values in column B, C, D... I want to count how many times a value occurs for a given name for each column.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    It's a little more difficult to do because you have error values in the name range but try this formula in C45 copied across and down to D52

    =SUMPRODUCT(--ISNUMBER(MATCH($A$3:$A$42,$A45,0)),--ISNUMBER(C$3:C$42))

  3. #3
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167

    Smile

    Quote Originally Posted by mccardled
    Hi,
    I have read in the forum that this can usually be done using sumproduct, but can't work out how to do this using names and values.

    I have names in column A, and values in column B, C, D... I want to count how many times a value occurs for a given name for each column.

    Thanks,
    Try this:

    C57
    =COUNT(IF($A$3:$A$42=$A57,IF(C$3:C$42<>"",1)))

    Ctrl+Shift+Enter and copy across then down.

    Hope this helps.

+ 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