formula to point to a sheet

gn82

New Member
Joined
Aug 6, 2011
Messages
22
Can anyone help me with an elegant solution for pointing at a spreadsheet name automatically?

I have a few sheets called 1999, 2000, 2001 and so on and I would like to point to them from an ID list instead of writing the sheet's name

Main sheet
<table frame="VOID" rules="NONE" border="0" cellspacing="0" cols="5"><colgroup><col width="28"><col width="28"><col width="28"><col width="28"><col width="28"></colgroup><tbody><tr><td align="CENTER" height="18" width="28">
</td><td align="CENTER" width="28">A</td><td align="CENTER" width="28">B</td><td align="CENTER" width="28">C</td><td align="CENTER" width="28">D</td></tr><tr><td align="CENTER" height="18">1</td><td align="CENTER">ID</td><td align="CENTER">Student</td><td align="CENTER">Class</td><td align="CENTER">Grade</td></tr><tr><td align="CENTER" height="17">2</td><td align="CENTER">1999</td><td align="CENTER">Mike</td><td align="CENTER">Physics</td><td align="CENTER">9</td></tr><tr><td align="CENTER" height="18">3</td><td align="CENTER">2000</td><td align="CENTER">Mike</td><td align="CENTER">Physics</td><td align="CENTER">10</td></tr><tr><td align="CENTER" height="18">4</td><td align="CENTER">2001</td><td align="CENTER">Mike</td><td align="CENTER">Physics</td><td align="CENTER">10</td></tr></tbody> </table>
D2=VLOOKUP(B3;'1999'.$H$2:$I$21;2;0)

How can I make sure Vlookup points to A2 in the current sheet instead of taking the numerical 1999 value for the sheet's name?

Thanks in advance !
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Your syntax is wrong:

=VLOOKUP(B3; '1999'!$H$2:$I$21; 2; 0)
 
Upvote 0
I'm not completely following your example, but I bet the INDIRECT function is what you're looking for.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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