+ Reply to Thread
Results 1 to 4 of 4

Count non-#N/A values in an INDEX/MATCH array

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    Eureka Springs, AR
    MS-Off Ver
    Excel 2003
    Posts
    15

    Count non-#N/A values in an INDEX/MATCH array

    I am trying to come up with a much shorter way to do the following:

    =COUNT(INDEX(AandH!$B$3:$S$13,MATCH($A5,AandH!$B$3:$B$13,0),11):INDEX(AandH!$B$3:$S$13,MATCH($A5,AandH!$B$3:$B$13,0),18))

    in which I need to locate a cell value ($A5 on worksheet Analysis!) on another worksheet (AandH! in my example) and then count the number of cells in a specific array (11-18 in the example - which, if useful, is worksheet AandH columns L through S) that don't have a #N/A value. The formula will need to be duplicated up to eleven times in a single SUM formula in order to give a total count on multiple worksheets so my current formula is far too long.

    Any ideas?

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count non-#N/A values in an INDEX/MATCH array

    If I've got this right, I think you need:

    =COUNT(INDEX(AandH!$L$3:$S$13,MATCH($A5,AandH!$B$3:$B$13,0),0))

  3. #3
    Registered User
    Join Date
    04-30-2012
    Location
    Eureka Springs, AR
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Count non-#N/A values in an INDEX/MATCH array

    Thanks, Cutter! It looks like you understood exactly and it works beautifully with a formula half the length. You've solved my problem!

    Again, Thanks!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count non-#N/A values in an INDEX/MATCH array

    You're welcome. Glad I could help.

+ 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