HYPERLINK function combined with CELL/address function

RobShorter

New Member
Joined
Jul 8, 2010
Messages
18
Hi,

The following formula:

{=IF(LEN($C$10)=0,"",IF(ROWS(A$2:A3)<=F$9,CELL("address",INDEX(Sheet1!$F$2:$F$12000,SMALL(IF(Sheet1!$F$2:$F$12000=Sheet2!$C$10,ROW(Sheet1!$F$2:$F$12000)-ROW($A$2)+1),ROWS(A$2:A3)))),""))}

Returns the following result:

'[Book1.xls]Sheet1'!$F$236

What I would like is a hyperlink to the above result, but when I adjust the formula to:

{=HYPERLINK(IF(LEN($C$10)=0,"",IF(ROWS(A$2:A3)<=F$9,CELL("address",INDEX(Sheet1!$F$2:$F$12000,SMALL(IF(Sheet1!$F$2:$F$12000=Sheet2!$C$10,ROW(Sheet1!$F$2:$F$12000)-ROW($A$2)+1),ROWS(A$2:A3)))),"")),"Link")}

It doesn't work.

However, if I type the following into a cell:

=HYPERLINK("#'[Book1.xls]Sheet1'!$F$236","Link")

It works.

How do I combine the two?

Thanks in advance,
Rob
 
Don't worry, I've worked it out.

I needed to add "#"& before the CELL function.

It now reads:

{=HYPERLINK(IF(LEN($C$10)=0,"",IF(ROWS(A$2:A3)<=F$9,"#"&CELL("address",INDEX(Sheet1!$F$2:$F$12000,SMALL(IF(Sheet1!$F$2:$F$12000=Sheet2!$C$10,ROW(Sheet1!$F$2:$F$12000)-ROW($A$2)+1),ROWS(A$2:A3)))),"")),"Link")}
 
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