+ Reply to Thread
Results 1 to 14 of 14

Hyperlink problem if space in Sheet Name

  1. #1
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Smile Hyperlink problem if space in Sheet Name

    I've a problem using hyper link when I've a space between sheet name…… Please guide me in this regard.

    =HYPERLINK(CELL("address",INDIRECT(A5&B5&"!C3")))
    Where A5 is First Sheet Name "Jan" and B5 is second part of sheet name "Expense".

    It works properly but when i've space in sheet name then unable to work. I've used below format but still no luck

    =HYPERLINK(CELL("address",INDIRECT("'"&A4&" "&B4&"'"&"!C3"))

    Also, If I have space in file name than its also not working.

    Please give the solution in both cases of Space in File name & space in sheet name in my attached file.

    Thanks in advance
    Attached Files Attached Files
    Last edited by mubashir aziz; 05-14-2009 at 07:02 AM. Reason: Solved
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Hyperlink problem if space in Sheet Name

    Why to use formula?

    Just type Click to go on spcific sheet. Then select cell. Go insert>hyperlink. Click Place in this document, select appropriate sheet and type the cell reference

    I did it here, but I'm wondering if it suits u.
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Hyperlink problem if space in Sheet Name

    Thanks for your suggestion as I already know all these tricks but the prolbem is this i've almost 200 sheets and this is our management requirement to go on selected sheet by just selecting First Month & then Type ... It looks quite good to present some user friendly to your management.
    Last edited by mubashir aziz; 05-14-2009 at 03:17 AM.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: <No Luck Yet> Hyperlink problem if space in Sheet Name

    I have seen your attachment. Your formula is good, but your data is wrong.

    Your B4 =Expense, But your SheetName ="Jan Expenses"

    Just change B4 =Expenses, everything is ok!

    Hope this helps,

    windknife

  5. #5
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: <No Luck Yet> Hyperlink problem if space in Sheet Name

    Nope ...

    I've corrected it but still the link having space in Sheet name is not working properly ...

    e.g. Hyperlink on sheet JanIncome working but for Jan Expenses not working as there is space between Jan & Expenses .........

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: <No Luck Yet> Hyperlink problem if space in Sheet Name

    Try this,

    =IF(ISERROR(HYPERLINK("#" & CELL("address",INDIRECT("'"&A4&SUBSTITUTE(B4,CHAR(160),CHAR(32))&"'"&"!C3")),"Click to Go on Specific Sheet")),"",HYPERLINK("#" & CELL("address",INDIRECT("'"&A4&SUBSTITUTE(B4,CHAR(160),CHAR(32))&"'"&"!C3")),"Click to Go on Specific Sheet"))

    I added a non-breaking space CHAR(160) to the data validation, which means you can use the same formula for both cells.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: <No Luck Yet> Hyperlink problem if space in Sheet Name

    Ha, I made a mistake. I modify your C4
    Please Login or Register  to view this content.

    Now, you can handle file and worksheet with space.

    See attachment.

    Hope this helps,
    windknife
    Attached Files Attached Files
    Last edited by windknife; 05-14-2009 at 06:32 AM.

  8. #8
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: <No Luck Yet> Hyperlink problem if space in Sheet Name

    Thanks you very much WK & Andy ....... Its really help me to control these issues .... but telling you honestly i'm still trying to understand the use of Substitute ........ anyway again thanks

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Hyperlink problem if space in Sheet Name

    The substitute parts is there to allow you to remove the " " (space) part from your formula.
    If you include the space in the formula then you need different formula for different sheet names.

    The problem lies in data validation not outputing the leading space in the list of sheet names. In order to hold the space I used the non-breaking space character, CHAR(160). But this then causes the sheet name to be incorrect. To me and you Space and non-breaking space look the same. To excel they are different characters.

    Personally I would have used a underscore instead of space. And been consistent with the naming convention. So all sheets would be named
    MonthDescription

    nospace or underscore to split names.

  10. #10
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Hyperlink problem if space in Sheet Name

    Quote Originally Posted by Andy Pope View Post

    Personally I would have used a underscore instead of space. And been consistent with the naming convention. So all sheets would be named
    MonthDescription

    nospace or underscore to split names.
    Just for the sake of info as i changed the File name and give - sign and + sign then still there were problem to hyperlink for simple formula so its is advisable not to use special character in File Name because it create problem in hyper linking or some other formula's .......

    Again thank you very much for your valuable suggestion / advise .....

  11. #11
    Registered User
    Join Date
    06-10-2013
    Location
    TAIWAN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Hyperlink problem if space in Sheet Name

    =hyperlink("#'" & sheet name & "'!cell reference",name)

  12. #12
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Hyperlink problem if space in Sheet Name

    @Michael
    Hi and welcome
    have you noticed this thread is 10 years old? The chances that the OP is still waiting for an answer are infinitesimal at best.

  13. #13
    Registered User
    Join Date
    08-20-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Hyperlink problem if space in Sheet Name

    Pepe Le Mokko,

    So what if it was 10 years old? 12 years after the thread's inception, I found Michael's answer helpful. I don't think people should assume that the original poster will be the only person in the ongoing history of the world asking the question.

  14. #14
    Registered User
    Join Date
    06-16-2011
    Location
    Utah, USA
    MS-Off Ver
    Office 2007/2010
    Posts
    2

    Re: Hyperlink problem if space in Sheet Name

    Steve017 is right. michael886's solution was exactly what I needed, many years after OP.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1