+ Reply to Thread
Results 1 to 7 of 7

#NUM error in Array formula using Index, Small, Row and Rows

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2016
    Posts
    7

    Question #NUM error in Array formula using Index, Small, Row and Rows

    Hi,

    I’m having an issue with a formula that works for 10 cells then stops. I have a sheet with questions, which are assigned to buckets, sub-categories and categories.

    I’m trying to create a helper sheet where I can Select the Category then it populates a list of Sub-categories, which in turn populates the Buckets and lastly the Questions assigned to the buckets. Everything works for the first 10 rows then stops generating the Bucket answers. When I view the formula it’s returning a #NUM error and I can’t for the life of me figure out why. I've highlighted the cell in yellow (on the Formula tab) where it stops working.

    The formula is:
    {=IFERROR(INDEX(CM_ALL,SMALL(IF(($B2=CM_SubCat),ROW(CM_SubCat)-MIN(ROW(CM_SubCat))+1,""),ROWS($L$2:L2)),6),"")}

    Any help on the error or a better way to do it would be appreciated. I’d like to avoid macros if possible.

    Thanks in advance for any help.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,889

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    Can you upload sample workbook?
    To upload use "Go Advanced" Button found below Quick Reply/Edit box. Then find "Manage attachments" hyperlink and click on it.
    It will launch new tab/window to manage attachments.

    My guess would be that named range reference is using relative reference, rather than absolute reference.
    Last edited by CK76; 05-16-2018 at 11:31 AM. Reason: Edit: Grammar
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    If you've tried to attach a file then read this

    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    05-11-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    Attempting to attached book.
    Attached Files Attached Files

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,889

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    Ah, I see. The culprit is ROWS($L$2:L2)

    When Value in Column B changes from "Hiring Process" to "Driver Training Programs"...
    Row counter should reset, since lookup value changes, but there isn't logic in the formula for that.
    And since there is no match for SMALL(, 10). You see no result.

    Amend your formula to use Column B and Countif logic.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Confirm as Array (CTRL + SHIFT + ENTER).

  6. #6
    Registered User
    Join Date
    05-11-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    Thank you, so much! Works exactly like I need it.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,889

    Re: #NUM error in Array formula using Index, Small, Row and Rows

    You are welcome.
    If this solved your issue, please mark the thread as solved by using Thread tool found at top of your initial post.

+ 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 Small if formula error
    By Neilesh Kumar in forum Excel General
    Replies: 13
    Last Post: 03-21-2018, 12:31 PM
  2. Capture data from TWO tabs/tables with INDEX/SMALL/ROW/ROWS Array
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2017, 02:07 AM
  3. INDEX formula error - using SMALL, ROW, MIN
    By KAP123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-01-2016, 02:08 PM
  4. Error using Array: Index, Small, Row to pull list from PivotTable
    By lgnmag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-25-2014, 08:39 PM
  5. [SOLVED] INDEX SMALL array formula issue
    By davepoth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2013, 07:13 AM
  6. Replies: 2
    Last Post: 06-20-2012, 12:22 PM
  7. INDEX SMALL ROW Formula #REF! error.
    By elcasey125 in forum Excel General
    Replies: 3
    Last Post: 12-10-2008, 12:41 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