Share via

=Hyperlink() not working if excel Worksheet name has dash "-" as part of the name

Anonymous
2017-10-31T05:07:50+00:00

I'm using Microsoft office 365 & in Excel when I use =HYPERLINK("[PUR-MON-YEAR.xlsm]LIST-OCT!a1") the destination file(PUR-MON-YEAR) opens & I get "reference isn't valid" error and goes to the First worksheet of the file instead of the "list-oct" worksheet  ( because of the "-" in the worksheet  name "list-oct" there is no problem of "-" in the File name, only issue with worksheet name, if i change that "-" to "_" or any other character it works fine.

so the question is cant we use the "-" hyphen in the worksheet name with respect to the =Hyperlink(), what is the solution and workaround

replacing the "-" in worksheet names is not an option for me due to standard naming format to follow

Regards

Ravi

Moved from : Office / Excel / Microsoft Office Programming / Office 365 Home

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2017-10-31T05:43:04+00:00

    Try putting single quotes (apostrophes) around the sheet name.

    =HYPERLINK("[PUR-MON-YEAR.xlsm]'LIST-OCT'!A1")

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments