Mac Excel issue - I have a formula which works perfectly on a number of sheets (and has worked perfectly in the test workbook). I must have deleted a column or cell because now i only get #REF in this one column, all other columns work as they should.
The formula is =IF(ROWS(JH$6:JH7)>COUNTA(IJ:IJ),"",INDEX(IJ:IJ,SMALL(IF(IJ$6:IJ$3970<>"",ROW(IJ$6:IJ$3970)),ROWS(JH$6:JH7))))
the results for the surrounding cells are shown here:
All these cells use the same formula, referencing their specific source column: IG, IH, II the error cell II, IJ, IK etc.
If I change the column number for the first cell above from IG to the problem column II the formula works:

Can anybody suggest a solution?