+ Reply to Thread
Results 1 to 12 of 12

Hyperlink OK in Office for Mac 2011 but problems in Office 2013

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Hi.

    I have a workbook with two sheets, Master and Members.

    Master has all the details of my club's members.

    Members is a vlookup of Master so an individual members details can be displayed. It also uses a hyperlink to go to the relevant cell on Master to update a members detail. Empty cells also hyperlink back to the relevant cell on Master so they can be updated. Empty cells on Master are displayed as a blank cell in Members rather that a zero.

    =HYPERLINK("#'Master'!D"&MATCH(A3,Master!$A:$A,0),IF(VLOOKUP(A3,Master!$A:$AK,4,0)="","",VLOOKUP(A3,Master!$A:$AK,4,0)))

    This all works well in Office for Mac 2011 but when I use it on a Windows machine running Office 2013 everything works except the hyperlink on an empty cell. If there is a value in Master it's fine but if it's empty on Master the hyperlink doesn't work.

    Any ideas what could be causing this?

    Thanks

    Ian

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Hi Ian- This might work, although it would only return the FIRST blank, if there are more than one:
    Please Login or Register  to view this content.
    Also, you can coerce a blank VLOOKUP return instead of a 0 by appending an empty string (Note: this would turn all numbers into text):
    Please Login or Register  to view this content.
    Last edited by leelnich; 11-14-2017 at 12:34 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    09-26-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Thanks for your help Lee but I don't think this would fix my problem (unless I'm missing something).

    Blanks are working fine - on my Mac if I click on a blank cell in the Members sheet e.g. Name, it takes me to the relevant cell in the Master sheet to edit so the hyperlink is working fine. On the Windows machine it doesn't. If there is a value in the cell it will work but not if it's blank. The problem is with the hyperlink.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Take a look at this workbook. It uses the &"|" trick to make MATCH work correctly with blanks. Again, if there are multiple blanks in Master!column A, this always finds the first one.

    NOTE: Make sure the modified MATCH array is contained in an INDEX(...,)function. Otherwise you must treat this as an ARRAY FORMULA to get proper results.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by leelnich; 11-14-2017 at 03:11 AM.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Hi,

    Your original formula works in 2010 on Windows. Does it work in 2013 if you use a space rather than blank cell
    =HYPERLINK("#'Master'!D"&MATCH(A3,Master!$A:$A,0),IF(VLOOKUP(A3,Master!$A:$AK,4,0)=""," ",VLOOKUP(A3,Master!$A:$AK,4,0)))
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Hi @xlnitwit - I think OP has that part working, it's there to defeat VLOOKUP's annoying tendency to return a zero instead of a blank.
    The problem is the HYPERLINK doesn't work, and I'm convinced it's because MATCH fails if match_value is blank.
    Please Login or Register  to view this content.
    Row\Col
    A
    B
    C
    4
    a
    1
    5
    #N/A
    6
    d
    3
    Last edited by leelnich; 11-14-2017 at 05:10 AM.

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    My interpretation is that the part that doesn't work is when the result of the vlookup is "", which is why I was suggesting changing that to return " " rather than "" so there is actually something in the cell to add the hyperlink to. I could be wrong though.

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Quote Originally Posted by irose_57 View Post
    ...Blanks are working fine - on my Mac if I click on a blank cell in the Members sheet e.g. Name, it takes me to the relevant cell in the Master sheet to edit so the hyperlink is working fine. On the Windows machine it doesn't. If there is a value in the cell it will work but not if it's blank. The problem is with the hyperlink.
    What does the failed cell display? If it's #N/A, then I'm convinced blanks in COLUMN A are the problem, because MATCH can't search them without some form of manipulation. Perhaps you could upload your workbook (sanitized sample) so we can figure this out.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Last edited by leelnich; 11-14-2017 at 06:07 AM.

  9. #9
    Registered User
    Join Date
    09-26-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Thanks for the replies and sorry for the delay in replying - timezone difference.

    I think xinitwit could have the solution. I'll give that a try today and see how it goes (have to travel to another location to test).

    Lee, there's no problem displaying the blank. It's the hyperlink that's not working. If I hover over the blank cell on 2011 the cursor changes to the pointing hand for the hyperlink. On 2013 it doesn't change unless there is a value in the cell.

    If xinitwit's solution doesn't work I'll put the workbook up.

    Thanks for you help - it's much appreciated.

    Ian

  10. #10
    Registered User
    Join Date
    09-26-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Hi Lee.

    Apologies as I had not understood your post. I've read it again and understand what you are saying.

    I've created two workbooks with both yours and xinitwit's solutions and will test on the Windows machine (they both work on my Mac).

    Will let you both know how it goes.

  11. #11
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    And NOW I understand what YOU and xlnitwit were saying - the cell correctly displays a blank, but you can't click on it and move to the other sheet. I missed it because initially I used a different formula which didn't replicate that behavior. The problem IS the zero-length string (""). Since the "clickable" thing is limited to the text displayed, and you're not displaying any, the hyperlink fails. My apologies for the confusion.

    IMHO, xlnitwit's post#5 suggests the most flexible solution. (I used extra spaces and turned off underlining in the hyperlink cells).

    BTW, if you employ a R1C1-style reference in your hyperlink and change the column # dynamically, a single formula (in B3) can be copied across:
    Please Login or Register  to view this content.
    Last edited by leelnich; 11-15-2017 at 09:59 AM.

  12. #12
    Registered User
    Join Date
    09-26-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Hyperlink OK in Office for Mac 2011 but problems in Office 2013

    Thanks everyone.

    Used xlnitwit's solution and it's working across both versions now.

    Ian

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. instal stand alone EXCEL 2013 on OFFICE 2013 home and business
    By LukasLyziciar in forum Excel General
    Replies: 0
    Last Post: 06-19-2015, 03:41 AM
  2. Moving from Office 2003 to Office 2013 - code no longer works
    By GeorgeC47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2014, 11:20 AM
  3. Replies: 2
    Last Post: 10-28-2014, 08:32 AM
  4. No PowerPivot in Com Add ins Excel 2013 (Microsoft office professional plus 2013)
    By benoj2005 in forum PowerPoint Formatting & General
    Replies: 7
    Last Post: 09-18-2014, 09:13 AM
  5. Open PDf specific page, work with office 2007 but not on office 2013
    By haktak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2014, 01:58 AM
  6. Opening xls files on office 2011 on mac
    By tomeq182 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 04-17-2013, 04:29 PM
  7. Mac Office 2011 macro compatibility?
    By CCharles in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 05:35 PM

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