+ Reply to Thread
Results 1 to 5 of 5

Create a Hyperlink from an Array Formula

  1. #1
    Registered User
    Join Date
    01-06-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Create a Hyperlink from an Array Formula

    Hello,

    I am a basic excel user, mostly using other peoples formula to do what i need, without really understanding what the formulas are doing 100%. (some brutal honesty)

    So i have cobbled together a formula that vlookups multiple sheets on a workbook, but I would like to be able to hyperlink the result to the location in the workbook.

    the formula that I am using is an array formula, as it looked much tidier than a "simple" one.

    {=VLOOKUP(C3,INDIRECT("'"&INDEX(A3:A20,MATCH(TRUE,COUNTIF(INDIRECT("'"&A3:A20&"'!C2:G1200"),C3)>0,0))&"'!C2:G1200"),1,0)}

    so it has a index A3:A20 with all the months from January 2019 - December 2020, referencing the tabs that have credits to customers, lots of info.
    and searches for the original invoice number, which will be entered in C3, the link can be in C4.

    I have created a front page with a simple search box for people to use that searches the whole workbook and returns basic stuff like customer name, date, status etc
    pretty simple just adjusting the last number to return the correct info.

    Please could someone help me turn this into a hyperlink?

    Thank you in advance for even reading this...

    Many thanks
    Ben

  2. #2
    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,926

    Re: Create a Hyperlink from an Array Formula

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Registered User
    Join Date
    01-06-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Create a Hyperlink from an Array Formula

    Hi FDibbins,

    Many thanks for the response.

    I hope i have managed to add a sample workbook (its like an intelligence test that i feel like i'm failing)

    Finger crossed.

    On the main sheets I have 2 columns with date, as I couldn't get vlookup to go left, this solution is fine for my purposes.

    Kind regards
    Ben
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Create a Hyperlink from an Array Formula

    If the dates are consistent with the dates of the sheet tabs hopefully the following should work

    =HYPERLINK("#"&TEXT($D$8,"mmmmyyyy")&"!c"&MATCH($C$3,INDIRECT(TEXT($D$8,"mmmmyyyy"&"!c:C")),0),"CLICK TO SHOW")

    TEXT($D$8,"mmmmyyyy") returns DECEMBER2019 in your example

    the match function returns the row number by matching the invoice number

  5. #5
    Registered User
    Join Date
    01-06-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Create a Hyperlink from an Array Formula [SOLVED]

    Hi davsth,

    Many thanks, that is brilliant!!!

+ 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] What is the hyperlink formula to create a hyperlink in Excel to a bookmark in Word
    By BryanHCR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2019, 11:41 PM
  2. [SOLVED] Create a hyperlink formula using populated cells
    By chriswrcg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2018, 08:02 PM
  3. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  4. [SOLVED] Unable to create Hyperlink formula that links to todays date.
    By olitalon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-05-2016, 06:02 AM
  5. Need formula to create hyperlink path to images
    By CampusLibrarian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2015, 03:30 PM
  6. [SOLVED] Excel 2010 Create a macro to check if cell contains hyperlink then apply hyperlink style
    By chasidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 04:48 AM
  7. Replies: 10
    Last Post: 02-11-2013, 02:55 AM

Tags for this Thread

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