Lookup value on different sheet

EJL88

New Member
Joined
Feb 15, 2018
Messages
2
Hello,

I am trying to get my excel sheet to lookup at value on a second sheet, but depending a value, it can be on 4 different sheets.

I found a formula where they used this:
"'Sheet ("&R14&")'!N$3"

But it does not work in my formula/array, where it returns the value error.
=INDEX("'KN"&K34&"'!B2:B40";MATCH(MIN(ABS(KN0!$A$2:$A$40-$F$34));ABS(KN0!$A$2:$A$40-$F$34);0))

Link to sheet:
https://ufile.io/khdwr

It is cell E42
 
I think you need INDIRECT() to resolve the reference:

=INDEX(INDIRECT("'KN"&K34&"'!B2:B40"),MATCH(MIN(ABS(KN0!$A$2:$A$40-$F$34)),ABS(KN0!$A$2:$A$40-$F$34),0))

WBD
 
Upvote 0
I think you need INDIRECT() to resolve the reference:

=INDEX(INDIRECT("'KN"&K34&"'!B2:B40"),MATCH(MIN(ABS(KN0!$A$2:$A$40-$F$34)),ABS(KN0!$A$2:$A$40-$F$34),0))

WBD

Thank you very much. That solved the issue. Dunno why I forgot about INDIRECT. Spent half an hour last year google'ing what indirect was, trying to understand it :P
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top