Excel: Array Ignoring last cell reference

I have the following array: {=IFERROR(INDEX(Data!$A$2:$A$170,SMALL(IF(Data!$C$2:$C$170=$M$3,IF(Data!$X$3:$X$170=1,ROW(Data!$A$2:$A$170)-ROW(Data!$A$2)+1)),ROWS($A$7:A7))),"")} which works perfectly (for the most part.) The only problem I have is that the array will not return the data that is on row 170 (the last row of data) and I'm not sure how to fix it. The array basically says look at the category in cell $M$3 and if cell X_ = 1, then return the data. Again, the data returns fine except when it should be returning the data in row 170. Any suggestions?

This question generated 21 answers. To proceed to the answers, click here.

This thread is current as of December 10, 2013.

For more resources for Microsoft Excel