• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

INDEX with area selection - Not working if areas are on different sheets

Anshu Bantra

New Member
Hi All,

Look at the below formulas, if use areas on the same sheet, my Index is returning values. However, if I select areas from two sheets it throws error.

What am I doing incorrectly?

upload_2018-3-22_16-11-56.png
 

Attachments

  • upload_2018-3-22_16-10-48.png
    upload_2018-3-22_16-10-48.png
    48.1 KB · Views: 10
Hi Mate,

Match does not have to refer to the second sheet at all. That's not what is causing this error. Thanks for taking a look though.
1] Extract from MS Excel - INDEX function explanation :

INDEX Reference form

INDEX(reference, row_num, [column_num], [area_num])

Area_num The areas must all be located on one sheet. If you specify areas that are not on the same sheet as each other, it will cause a #VALUE! error.
……..you could use the CHOOSE function to calculate which range will be used.

2] then, try to use :

=INDEX(CHOOSE(MATCH(F12,E1:F1,0),B3:D7,Sheet2!G3:I7),MATCH(F11,CHOOSE(MATCH(F12,E1:F1,0),B3:B7,Sheet2!G3:G7),0),3)

Regards
Bosco
 
Back
Top