+ Reply to Thread
Results 1 to 4 of 4

Hyperlink + Vlookup + If

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    23

    Hyperlink + Vlookup + If

    Hi all

    My first post on the forum and hopefuly not the last.

    I've searched around and couldn't find what i need...


    So heres what i need help with:


    I've got X number of Sheets named Sheet1,Sheet2,...Sheet5

    Sheet1:

    A1 = a number
    B1 = VLookup(A1;Sheet2!A1:B3;2)
    C1 = Hyperlink to SheetX according to the number inserted on A1
    Sheet2:

    This is the example of matrix i have:

    A1 = 3
    A2 = 5
    A3 = x

    B1 = Hat
    B2 = Plain
    B3 = xxxx
    So i really need help on Sheet1 C1 as above. I want that when i change the value on A1 the C1 changes the sheet it needs to go

    Imagine:

    A1 = 3 on C1 = Hyperlink to Sheet 3
    So
    If i put on A1 = 7 on C1 would show up the Hyperlink to Sheet 7

    Or

    AX = x on CX = Hyperlink to Sheet X
    Well thats the best i can explain i guess...

    Sorry for my bad english and the lack of experience on this subject.
    Hope to get some help

    Cheers

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Hyperlink + Vlookup + If

    Do you really mean that you want the Vlookup() formula to reference the sheet named as per your A1 entry?

    eg

    =Vlookup(A1;Indirect("'Sheet"&A1&"'!A1:B3");2)

    This will lookup A1 in the range A1:B3 of sheet numbered per entry in A1..

    Is that what you mean?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlink + Vlookup + If

    its quite convoluted to make a hyperlink like that! see attached you need a cell to create a reference to the sheet name i used H1
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-04-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Hyperlink + Vlookup + If

    Quote Originally Posted by martindwilson View Post
    its quite convoluted to make a hyperlink like that! see attached you need a cell to create a reference to the sheet name i used H1
    Thanks that did the job, i then used a Vlookup on the H1 Cell so that i would match my table

    Very helpful :P

+ 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