+ Reply to Thread
Results 1 to 4 of 4

Countif in an array

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    56

    Countif in an array

    I have a complicated problem. I have a list with 10 columns and xxxxx rows.
    All I want to do is (i attached a sample xls)
    There is a value in Sheet2!A1 which I want to lookup in Sheet1 (A:J) and find out how many A1,A2,A3... is associated with the given value.

    default2.xlsx

    I've tried countif(vlookup(vlookup) ctrl+shift+enter but it didn't work.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif in an array

    Sheet2!A1 has no value! Which is the value?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    12-21-2012
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    56

    Re: Countif in an array

    Sorry. I updated it.
    default2.xlsx

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif in an array

    In B2 and copy to the right

    =SUMPRODUCT((Sheet1!$A$2:$A$42=$A1)*(Sheet1!$J$2:$J$42=B$1))

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif in an array

    You are welcome!

    Thanks for the reb*

+ 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