Linking to worksheets using a formula

FloggingDolphin

New Member
Joined
Jul 3, 2005
Messages
25
Hi there,

I am trying to do a link to a worksheet based on a v-lookup.

It's a bit complex to exlpain so I will use an example.

If I have 5001 worksheets.

1. The first worksheet contains numbers 1 to 5000.
2. The 5000 other worksheets contain data for those numbers.
3. Instead of typing in a worksheet the link: =1!K17 I would like it to look at the worksheet based on another cell. Eg. I have a cell (A21) containing the number 1. So I would like to type something like =(A21)!K17 instead.


Here's another example: I have a main work sheet with the Monday Tuesday Wednesday and Thursday data and four worksheets with those names. To link I would type eg. ='Tuesday'!A4 but instead I want it to use a cell that has the word tuesday in it (Z26) containing the word 'Tuesday'. Ie. I would type something like =(Z26)!A4 instead but it doesn't appear to work.

Hope I managed to explain properly.
thanks in advance!
FD
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

FloggingDolphin

New Member
Joined
Jul 3, 2005
Messages
25
Thanks..I'll check it out.

I only have about 50 worksheets. But I still need to let the formula choose the worksheet based on the precent cell (sort of like a v-lookup).

fd
 

FloggingDolphin

New Member
Joined
Jul 3, 2005
Messages
25
Hi...

I still can't seem to get it. I have done a concatenate that comes up with the following in cell AQ30.

=VLOOKUP("TOTAL",'remun 250110'!$J$51:$AK$51,23,FALSE)

I put the indirect function in another cell (=INDIRECT(AQ30)) but it does not work. Comes up with #REF.

I have tried out the above VLOOPUP formula on its own and it works.

Hope someone can help!
FD
 

FloggingDolphin

New Member
Joined
Jul 3, 2005
Messages
25
Hi

I got it now, you need a v-lookup formula that looks something like this:

=VLOOKUP("TOTAL",INDIRECT(AL26),23,FALSE)

And AL26 would contain something like:

="'Remun "&E26&"'!"&AN26

With E26 or any cell containing a worksheet name and AN26 containing table array.

Thanks for helping me getting there!

FD
 

Forum statistics

Threads
1,141,757
Messages
5,708,346
Members
421,566
Latest member
7Nabisco

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
Top