Hyperlink help

jrisebo

Active Member
Joined
Mar 15, 2011
Messages
325
Office Version
  1. 365
Platform
  1. Windows
I have a cell that returns 3 values, either its 'WALL', 'FTG', or OK. Is there anyway to do a hyperlink that will have a if statement? The cell already has a formula in it, so not sure how to also do a hyperlink with an if statement.
Thanks
Jim
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I think that would require VBA not a formula. where should the "hyperlink" go to for each condition? Which cell contains the drop-down?
 
Upvote 0
ok, my cell is J44 on the 'Input' tab. Its formula is '=IF(hwwa1<>0,IF(AND(II.stability!H53="OK",II.stability!H13="OK"),"OK",IF(II.stability!H13<>"OK","WALL","FTG")),"NA")'
so it can return WALL, FTG, or OK. If its WALL i want the hpyerlink to goto 'II.Stability' tab cell H13, if its FTG I want the hyperlink to goto "II.Stability' tab cell H53, and if OK it can goto either cell, really no reason to link if ok. I use the links so the user can click to that tab without having to scroll across the bottom to find the right tab and cell. This make sense?
Thanks
 
Upvote 0
Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Calculate()
Select Case Range("J44").Value
    Case "WALL", "FTG": Application.Goto Sheets("II.Stability").Range("H53"), True
End Select
End Sub
 
Upvote 0
It doenst do anything. Should I expect cell J44 to endup with a clickable value?
 
Upvote 0
ok, it works. I guess thats not what I was looking for, I wanted the cell to be like a hyperlink, just going to different locations depending on what is shown, and then you click it and it takes you to the dependent cell.
 
Upvote 0
also, when it says FTG, it would goto H53, and if it says WALL it would goto H13, and OK, it doenst have to go anywhere. I dont see in the code how it goes to H13?
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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