Hyperlinks happening regardless of formula

eli_m

Board Regular
Joined
Jun 2, 2022
Messages
129
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have this code that has hyperlinking the whole cell regardless of what the formula is.

VBA Code:
=IF(OR(ISBLANK([@[Surgery Date]]),NOT(ISNUMBER([@[Surgery Date]]))),"",

IF(OR(ISBLANK([@Material]),[@Material]="TBC"),"Select Material",

IF([@Indication]="Dental","N/A",

IF([@Manufacturer]="Australia","N/A",

IF(ISFORMULA([@[Report & Presc. in PT Folder]]),
IF(AND([@Material]="Titanium",[@Manufacturer]="Germany"),WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),
IF(AND([@Material]="Plastic",[@Manufacturer]="Germany"),WORKDAY([@[Shipping]],-2,Holidays!A$4:$A$103),
IF(AND([@Material]="Steel",[@Manufacturer]="Germany"),WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),
IF(AND([@Material]="Wood",[@Manufacturer]="Germany"),WORKDAY([@[Surgery Date]],-16,Holidays!A$4:$A$103))))),

IF(COUNTIF('Pre-Quote Approval Account'!$A$1:$A$10,[@Hospital])>0,
IF(AND([@Material]="Titanium",[@Manufacturer]="Germany"),CONCATENATE("Quote Approval Due: ",TEXT(WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),"dd-MMM")),
IF(AND([@Material]="Plastic",[@Manufacturer]="Germany"),CONCATENATE("Quote Approval Due: ",TEXT(WORKDAY([@[Shipping]],-2,Holidays!A$4:$A$103),"dd-MMM")),
IF(AND([@Material]="Steel",[@Manufacturer]="Germany"),CONCATENATE("Quote Approval Due: ",TEXT(WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),"dd-MMM")),
IF(AND([@Material]="Wood",[@Manufacturer]="Germany"),CONCATENATE("Quote Approval Due: ",TEXT(WORKDAY([@[Surgery Date]],-16,Holidays!A$4:$A$103),"dd-MMM")),"")))),

IF(AND(ISNUMBER([@[Report & Presc. in PT Folder]]),ISNUMBER([@[Report & Prescription Sent]])),
IF(AND([@Material]="Titanium",[@Manufacturer]="Germany"),HYPERLINK(CONCATENATE("https://website.com/ui/cases/",[@[Eng '#]],"/case-design"),CONCATENATE("Upload by: ",TEXT(WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),"dd-MMM"))),
IF(AND([@Material]="Plastic",[@Manufacturer]="Germany"),HYPERLINK(CONCATENATE("https://website.com/ui/cases/",[@[Eng '#]],"/case-design"),CONCATENATE("Upload by: ",TEXT(WORKDAY([@[Shipping]],-2,Holidays!A$4:$A$103),"dd-MMM"))),
IF(AND([@Material]="Steel",[@Manufacturer]="Germany"),HYPERLINK(CONCATENATE("https://website.com/ui/cases/",[@[Eng '#]],"/case-design"),CONCATENATE("Upload by: ",TEXT(WORKDAY([@[Surgery Date]],-12,Holidays!A$4:$A$103),"dd-MMM"))),
IF(AND([@Material]="Wood",[@Manufacturer]="Germany"),HYPERLINK(CONCATENATE("https://website.com/ui/cases/",[@[Eng '#]],"/case-design"),CONCATENATE("Upload by: ",TEXT(WORKDAY([@[Surgery Date]],-16,Holidays!A$4:$A$103),"dd-MMM"))),
"")))),
"")
))))))

It should only hyperlink the last bit of the code.

The hyperlink also just takes my SharePoint.

What is causing this?

Thanks in advance!
 

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.
This is what the hyperlink looks like for the cell when other conditions are met:
1687248134223.png


The date shouldn't be hyperlinked at all
 
Upvote 0

Forum statistics

Threads
1,215,098
Messages
6,123,082
Members
449,094
Latest member
mystic19

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