Share via

How to debug #REF in Exel Index function

Anonymous
2016-04-17T13:13:36+00:00

I have two Excel Workbooks:

  • Data.xlsx
  • Report.xlsx

I want to reference Data.xlsx from Report.xlsx and I reference using the following formula:

=INDEX('[Data.xlsx]Sheet1'!$A$7:$F$33,2,6)

It works fine. However if I try to reference the next cell I get a #REF error.

=INDEX('[Data.xlsx]Sheet1'!$A$7:$F$33,2,7)

It's behaving like I'm querying outside the bounds of the range. How can I debug this error?

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
2016-04-17T13:32:50+00:00

>... 

=INDEX('[Data.xlsx]Sheet1'!$A$7:$F$33,2,7)

It's behaving like I'm querying outside the bounds of the range. How can I debug this error?

Hi.

A7:F33   is 6 columns, and  you are referencing the 7th column, which is outside the  bounds.   :>)

= = = = =

HTH  :>)

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2016-04-17T13:39:46+00:00

    Agh! Thank you. I was staring at it for too long..

    Was this answer helpful?

    0 comments No comments