+ Reply to Thread
Results 1 to 13 of 13

Link on cells

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Link on cells

    Hello,

    As per the attachment, I would like to have from the Index Tab the possibility to change acronym to name!

    I have no clue what would be the best way to do that!

    For example: I would need to be able to click on the B3 cell (hyperlink) and change the acronym "GGL" To "Graig LASTNAME". Clicking again on the displayname "Graig LASTNAME" I should get "GGL" etc...

    I put 2 examples in the "database" sheet. Please let me know how would you create that sort of link on the cells??

    Many thanks,
    Graig
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Link on cells

    In C3 Cell of Index Sheet

    =IFERROR(HYPERLINK("#'DATABASE'!A"&MATCH(B3,DATABASE!A:A,0),VLOOKUP(B3,DATABASE!A:D,4,0)),"")

    Drag it down....


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    I tried and got the "circular reference Warning" Would that let me switch from acronym to displayname by clicking on the cell?

    Thanks,

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Link on cells

    Have you tried it in C3 Cell?

  5. #5
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    My bad. However, it is not what I need. C3 = GGL After a click on the acronym or C3 cell that cell should show the displayname. I should stay on the index tab

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Link on cells

    Sorry I can't understand your requirement and I hope someone will take care of this thread

  7. #7
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    Just to clarify as I am not sure the attachment helps to understand better what I need:

    So if I have in a simple excel worksheet the cell A1 equal to "GGL". I am looking for a way to change the acronym on the cell A1 to display the disply name corresponding to the acronym. So in this case and as per the attachment it should read "Graig Lastname"

    I would like to have that "switch" occurring by clicking on the A1 cell. Please check the "link.jpg" attachment.

    Many thanks,
    graig
    Attached Images Attached Images

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Link on cells

    You may try this attachment.
    Attached Files Attached Files
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  9. #9
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    Can you please tell me how you did that!! It is just PERFECT!! many Thanks! It is exactly what I was expected! THANKS THANKS THANKS!!!!

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Link on cells

    There is code behind the sheet to lookup the correct text to display when the hyperlink is clicked. To see the code you may right-click the worksheet tab and select 'View Code'.

  11. #11
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    @ Izandol: It works perfectly and I use it now in my original excel document. I just would like to ask if there is a limit? From the database worksheet, I can create hyperlink for about 50 rows. after it doesn't work. I checked the macro but I haven't see a limit. Can you please help me on that?

  12. #12
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Link on cells

    There should not be limit - if the display text matches item in the database table the code will toggle the text; if there is no match it will do nothing.

  13. #13
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Link on cells

    I remove blank rows and now it works perfectly Thanks again

+ 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. Replies: 0
    Last Post: 01-28-2014, 02:45 PM
  2. trying to link cells that imitate the format of the cells linked to it.
    By yurikoma in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-18-2013, 07:36 PM
  3. Turn zero-valued cells into blank cells while preserving link
    By ockidocki in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2013, 08:21 AM
  4. Replies: 13
    Last Post: 05-15-2012, 06:53 PM
  5. Display a hyphen in cells that link to BLANK cells
    By NicB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2010, 04:34 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