Insert cell value into bookmark link

rashl2

New Member
Joined
Nov 28, 2013
Messages
6
I have a list of student names in an Excel 2010 worksheet in column A. Each student has two worksheets that I need to link to (from columns B and C). Can I create a bookmark link that takes its worksheet name from the column A. This would allow me to create spreadsheets for many different classes without having to manually hyperlink/bookmark for every student. Instead I could fill down for the two link columns.

I would also, ideally, like to have the student worksheet names generated from a cell value. Is this possible?

Thanks, in advance . . .
 
Last edited:
Hi rashl2. I think you're getting the reference error because the worksheet name that you are using I'm guessing has spaces in it if you're creating the worksheet off of a name (e.g. firstname surname). The example I had given you is based on a worksheet that has no spaces in it's name. To account for the spaces, just adjust the hyperlink formula as below and it should now work.

Code:
=HYPERLINK(CONCATENATE("[",DAT_FILE_NAME,"]","'", A7,"_S1","'!A2"),"Link")

Basically, the difference is that we are wrapping the worksheet name between the single quote (') marks. This will account for spaces in the worksheet name. I would caution basing the worksheet names based on the name of the student as names are not unique. As I hinted at earlier, I would name the sheet based on some unique value such as a student ID, or perhaps a mixture of student name plus last 4 digits of their student ID for example.

BTW, the cell A7 being surrounded by a blue outline and coloured blue in the formula bar is just to visually way to illustrate what cells/ranges have been included in the forumula. I'm not sure what the error is you're getting. If in doubt, start again with a new workbook. :)


That's brilliant! It works! :laugh::laugh::laugh: It was the space in the worksheet.
Thank you so much for your knowledge and patience.

Thank you to nigelk too as I think I have a use for the INDIRECT function.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,176
Messages
6,170,542
Members
452,336
Latest member
boekl007

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