Hyperlink with Indirect Formula not working

ThomasB

Active Member
Joined
May 2, 2007
Messages
314
Hi

Using the INDIRECT function am trying to reference a different worksheets with in a worbook called Foods

my formula looks like this:

=HYPERLINK(INDIRECT("'[" & C3 & "]" & C4 & "'!" & C2),"Apples")

C3 = Workbook name is called Foods
C4 = Worksheet name is called Apples
C2 = cell reference is A2

I intend to change C4 and C2

Formula is not working anyone know what I am doing wrong?

Kind Regard

Thomas
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hyperlink takes a string, not a cell ref, so you don't need INDIRECT at all:
=HYPERLINK("'[" & C3 & "]" & C4 & "'!" & C2,"Apples")
 
Upvote 0
Hi Rory

Ahh did not know that? when I use the formula you provided with the indirect removed it unfortunately still returns an error any ideas?

Rgs

Thomas
 
Upvote 0
Works for me - does C3 contain "Foods" or "Foods.xls"?
 
Upvote 0
You can further shorten the formula like this.


=HYPERLINK("#'" & C4 & "'!$A$1","Foods")

Got it to work although in a round about way

using the folling link http://www.mvps.org/dmcritchie/excel/indirect.htm

came accross this formula:

=HYPERLINK("#" & "'" & C4 & "'!$A$1","Foods")

am unsure how it works but it provided the desired results ie
I can reference any worksheet I want by changing the string in C4

Kind Regards

Thomas
 
Upvote 0
Hi

Using the INDIRECT function am trying to reference a different worksheets with in a worbook called Foods

my formula looks like this:

=HYPERLINK(INDIRECT("'[" & C3 & "]" & C4 & "'!" & C2),"Apples")

C3 = Workbook name is called Foods
C4 = Worksheet name is called Apples
C2 = cell reference is A2

I intend to change C4 and C2

Formula is not working anyone know what I am doing wrong?

Kind Regard

Thomas

Although an old one change the INDIRECT to CONCATENATE and remove the apostrophe's
=HYPERLINK(CONCATENATE("[" & C15 & "]" & C16 & "!" & C17),"Apples")
 
Upvote 0

Forum statistics

Threads
1,223,925
Messages
6,175,423
Members
452,641
Latest member
Arcaila

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