Share via

Error with array formulas in excel

Anonymous
2018-03-15T04:08:50+00:00

I am having a problem with array formulas - they work properly in one workbook but not in another (same formula different branch office).  When I enter just the formula (not as array) it brings back the correct data but as soon as I convert to an array it returns #NA.  This is the formula {=INDEX(Data!A$2:A$2001,SMALL(IF(Data!$M$2:$M$2001=1,ROW(Data!A2:A$2001)-ROW(Data!A$2)+1),ROWS(Data!A$2:A2)))} .  Does anyone know why this is not working?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-03-15T20:46:33+00:00

Hi Sheeloo

My data set runs from a1 to m2001, row 1 is a header row.  Column m has 12 "1"s in it, however, I have found some #NA fields in column m (invalid data entered in the source spread sheet).  When I clear these the array formula works properly.

Thanks for your help.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2018-03-15T07:10:05+00:00

I got that.

I entered it as an Array and it worked as long as Column M in Data sheet had at least one 1.

I also entered numbers in Col A

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-03-16T15:08:39+00:00

    Thanks for your feedback. Happy to help.

    I usually try any formula with least possible data so that I can find out any issues. Once I am confident that the formula is correct then it is easier to find any issues with larger data set.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-03-15T05:38:18+00:00

    Hi Sheeloo  - I know that the formula is correct, as a formula it returns the correct information.  However, when I enter it as an array (CSE) it changes to #NA & I cannot understand why.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-03-15T04:40:45+00:00

    Formula is correct... one of the cells in the range Data!$M$2:$M$2001 must be equal to 1 for this to work...

    Was this answer helpful?

    0 comments No comments