+ Reply to Thread
Results 1 to 7 of 7

Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

  1. #1
    Registered User
    Join Date
    07-07-2020
    Location
    Illinois
    MS-Off Ver
    Office 365
    Posts
    4

    Question Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    I am trying to create an array formula that uses the HYPERLINK function to build friendly links to web pages.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here, wiki is a name whose value is a string that contains the web link minus the final page name. But it makes no difference if I instead use the literal string.

    See the attached workbook.

    The formula works fine if I don't pass the second parameter (the friendly link string). It also works fine if I don't use it as an array formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Am I doing something wrong? I'm fairly certain that you can use two arrays in one formula so long as they are shaped the same.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,327

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    Why do you need to do it this way?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-07-2020
    Location
    Illinois
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    Because I want to? Because the actual data is over 800 rows. Because with the new array formulas you only need to have the formula in one row, you don't need to do lots of copy-and-pastes to update formulas.

    Is there another way to do it? Sure. I'm trying to use this new feature to improve reliability; make my work faster and more accurate.

    I could equally ask, why would anyone not want to do it this way.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,327

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    I don't see any advantage. If your data is in a structured Excel table, the regular formula will get copied down automatically, and if you don't, you can just drag copy down - 800 rows takes just a few seconds.

    This is not the way that array formulae are meant to be used, and you are munching up processing power by referencing a whole array when you only need to reference cells on the same row! The rule of thumb is only use arrays if you need to find data in them that is NOT on the row where your formula resides.

  5. #5
    Registered User
    Join Date
    07-07-2020
    Location
    Illinois
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    Thanks for your opinion. Could you answer the question about why this approach does not work, instead of questioning why I want to do it this way?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,327

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    I think I already did - they are not designed to be used this way.

    However, if you want to wait and see if someone else can help you adapt them, then hang on in here - I have to log off for the evening now. It's tea time in the UK!

    By the way, being prickly about being asked questions about what you are doing and why is fine, as long as you realise that by being defensive, you can very easily miss a learning opportunity. Hopefully you will realise from what I've said about processing power that pursuing this idea could lead to your workbook becoming slow, but of course, that's entirely up to you in the end.

  7. #7
    Registered User
    Join Date
    07-07-2020
    Location
    Illinois
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Excel 2019 HYPERLINK function in array formula fails if both parameters are arrays

    I'm not at all certain that doing it this way will be significantly slower than having a whole column of formulas that need to be calculated. In fact, it seems that there are opportunities for more efficient calculations, whether Microsoft has coded it to take advantage of those opportunities is an open question.

    Come to think of it, how would we ever know if Microsoft did or not if we didn't do comparisons, which means exploring the newly introduced capabilities?

    I think you ought to consider that questioning peoples motives, without any explanation, comes across as unfriendly, if not outright arrogant.

    It's certainly not a helpful response. If you had included some explanation as to why you were questioning my approach, it might not have be received better.

    Of course, you can continue to respond to questions the way you did. But it may be worth considering that your approach to questioning questioner's motives could make people less willing to use the forum.

+ 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. Disable Hyperlink Warning in Excel 2019
    By turkanet in forum Excel General
    Replies: 1
    Last Post: 02-06-2020, 04:28 PM
  2. [SOLVED] VBA (or function) to turn a date into a number i.e 12/31/2019 to 2019.12
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2019, 03:56 PM
  3. Adding an Array as parameters of a function
    By oulouis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2017, 07:18 AM
  4. [SOLVED] Excel array formula and structured table date header fails with date number <10
    By sdassira in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2015, 11:32 AM
  5. Array worksheet function fails when I use a range of 15,000 rows
    By Larry.LeBlanc@O in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2014, 05:40 PM
  6. [SOLVED] Hyperlink function that goes to first empty or blank cell in a sheet fails.
    By Aussie Mat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 09:58 PM
  7. [SOLVED] Hyperlink function fails when using variable row number
    By Balex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2006, 01:45 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