+ Reply to Thread
Results 1 to 13 of 13

Use of Hyperlink in a formula?

  1. #1
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Use of Hyperlink in a formula?

    Hi, hoping someone can help? I have staff training results on individual worksheets, i am trying to take the training completed to fill a spreadsheet on another workbook and mark "X" in the corresponding column?

    I thought i might have been able to use hyperlinks to make it more simple?

    Any help would be great

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use of Hyperlink in a formula?

    How would hyperlinks simplify your process. What is your vision for this feature?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    I am hoping to link staff names from one spreadsheet to another while searching for training criteria... So spreadsheets named 'John'! 'James'!, 'Jane'! etc to link to 'training level 1'
    So data on the sheets with names I will be looking at one column of data 'James!$B:$B, names of training courses.

    I would like to to get 'Training level 1!' Cell A2= "James" to lookup the sheet 'James'! While searching for the name of the training course in the cell B1. And place an X if it finds the result.

    I can get it to work =if(vlookup(B1,James!$B:$B,1,False)" ","X")

    I have 100 staff and I thought having to enter the sheet name in manually would take to long so would like to find a simpler way?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use of Hyperlink in a formula?

    The function you're looking for is INDIRECT(). This lets you piece together a range reference by using strings to create a usable range reference.

    A2= James.
    Desired sheet / column is James!$B:$B

    Indirect reference:

    =IF(ISNUMBER(MATCH(B1, INDIRECT(A2 & "!$B:$B), 0)), "X", "")

  5. #5
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    Hi thanks for that, that seems like a simple solution... how ever i am getting an error on that formula? Is there something i could be doing wrong? It is not picking up the reference text?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Use of Hyperlink in a formula?

    what does your formula look like?
    what are your reference ranges?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    =if(isnumber(match(e11, indirect(j21 & "!$b:$b), 0)), "x", "")

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Use of Hyperlink in a formula?

    Looks like you just retyped that in here? Please copy/paste instead.

    Also, what is in E11, A2 and coluumn B?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Use of Hyperlink in a formula?

    Looks like you just retyped that in here? Please copy/paste instead.

    Also, what is in E11, A2 and coluumn B?

  10. #10
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    I will try again:

    =IF(ISNUMBER(MATCH(E11,INDIRECT(J21&"!$B:$B),0)),"X","")

    E11 = Training name
    J21 = Staff Name/ Sheet Name
    Column B = Training names

  11. #11
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    I will try again:

    =IF(ISNUMBER(MATCH(E11,INDIRECT(J21&"!$B:$B),0)),"X","")

    E11 = Training name
    J21 = Staff Name/ Sheet Name
    Column B = Training names

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use of Hyperlink in a formula?

    Does the text value in J21 include any spaces? If so you need to add apostrophes around those.


    =IF(ISNUMBER(MATCH(E11,INDIRECT("'"&J21&"'!$B:$B),0)),"X","")

  13. #13
    Registered User
    Join Date
    01-09-2017
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    7

    Re: Use of Hyperlink in a formula?

    No spaces it just has the staff members first name.. but thanks for that i will be adding last names when i get it working.. the error is highlighting the "X" part of the formula? if that helps you with where its going wrong for me?
    Attached Images Attached Images

+ 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. [SOLVED] HYPERLINK formula help
    By welshman010 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2014, 12:14 PM
  2. Hyperlink using a formula
    By Bridge1969 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2014, 02:11 PM
  3. Hyperlink formula
    By TlgKill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2013, 05:18 PM
  4. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  5. Hyperlink Formula
    By Glennww in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-24-2010, 06:17 AM
  6. hyperlink or formula
    By bokals in forum Excel General
    Replies: 12
    Last Post: 07-06-2009, 07:41 AM
  7. Hyperlink Formula
    By jmcall10 in forum Excel General
    Replies: 1
    Last Post: 02-15-2008, 12:43 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