+ Reply to Thread
Results 1 to 6 of 6

CountIf Index Match Array not sure ?

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    11

    CountIf Index Match Array not sure ?

    Hi I wish to match a date in a column G from my search criteria in cell I2, return the row value from Column H and count the matching occurrences.

    I have a screenshot of my desired results which are in Columns J & K

    Any help please would be appreciated

    Many thanks

    Pros
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    166

    Re: CountIf Index Match Array not sure ?

    Can you attached a worksheet and not just an image?

    Also, is this what you are looking for:

    =INDEX(H:H,match(I2,G:G,0))

  3. #3
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    166

    Re: CountIf Index Match Array not sure ?

    Actually it doesn't look like that's what you are looking for - maybe a sum product or a SUMIF?

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,176

    Re: CountIf Index Match Array not sure ?

    Try in J2:

    =INDEX($H$2:$H$20,MATCH(1,INDEX(($G$2:$G$20=$I$2)*(COUNTIF($J$1:J1,$H$2:$H$20)=0),0),0))

    In K2:

    =COUNTIFS($G$2:$G$20,$I$2,$H$2:$H$20,J2)

  5. #5
    Registered User
    Join Date
    03-29-2017
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    11

    Re: CountIf Index Match Array not sure ?

    Quote Originally Posted by Phuocam View Post
    Try in J2:

    =INDEX($H$2:$H$20,MATCH(1,INDEX(($G$2:$G$20=$I$2)*(COUNTIF($J$1:J1,$H$2:$H$20)=0),0),0))

    In K2:

    =COUNTIFS($G$2:$G$20,$I$2,$H$2:$H$20,J2)
    Absolutely Spot On, thanks sooo much for your quick and accurate response.

  6. #6
    Registered User
    Join Date
    03-29-2017
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    11

    Re: CountIf Index Match Array not sure ?

    Quote Originally Posted by Phlegon_of_Tralles View Post
    Actually it doesn't look like that's what you are looking for - maybe a sum product or a SUMIF?
    Hi Phlegon, thanks for the quick response, apologies for the confusion as to the formula, that was me testing, Phuocam solution has worked perfectly, thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Index Match with Partial Match in Lookup Array
    By AliGW in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2016, 03:13 PM
  2. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. [SOLVED] Array, VLOOKUP - or- Match/index with a Countif.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 05:38 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Index Match array equation with sub-array calculation
    By glebbo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 03:04 AM
  7. Replies: 2
    Last Post: 03-16-2012, 12:03 PM

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