+ Reply to Thread
Results 1 to 6 of 6

How to ignore displayed text to extract from underlying function

  1. #1
    Registered User
    Join Date
    05-25-2020
    Location
    Varies
    MS-Off Ver
    2007 at home, 365 at work, Google Sheets
    Posts
    7

    Question How to ignore displayed text to extract from underlying function

    Hello,

    I am trying to extract the link from the following:

    =HYPERLINK("linkgoeshere","CLICK "&B62)

    So clearly the actual displayed text is "CLICK" + the string in B62, which has nothing to do with the link. I think the following would work to extract the link "=MID(J62,13,(FIND("CLICK",J62)-16))", where all the links are in J column (apologies I can't share the actual file because of confidential information, additonally I can't even include an actual link here because I am a new member). But it became clear to me that any formula I use to extract sub-strings analyzes just the displayed text or label. I can't figure out how to instead extract from the underlying formula/text. I guess the underlying formula is not really treated like a string as I tried to do. Any ideas on how extract the hyperlink?

    Thank you

  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,929

    Re: How to ignore displayed text to extract from underlying function

    Your profile shows 2002 so Im not sure if this in included in that version, but see if you can use =FORMULATEXT(). This will give you the formula, in text form
    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
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: How to ignore displayed text to extract from underlying function

    further to the above, if you're not using a more recent version you will have to use 'macros' - either c/o the old GET.CELL method, or a UDF

    The latter (UDF) would make a lot more sense as more flexible, so something like:

    Please Login or Register  to view this content.
    which you would simply call from a cell along lines of:

    =GET_LINK(J62)

    note: the above is just indicative -- you may need to adjust to accommodate complexity / variety of your underlying links
    Last edited by XLent; 05-26-2020 at 06:26 AM.

  4. #4
    Registered User
    Join Date
    05-25-2020
    Location
    Varies
    MS-Off Ver
    2007 at home, 365 at work, Google Sheets
    Posts
    7

    Re: How to ignore displayed text to extract from underlying function

    I was using sheets so =FORMULATEXT() worked! I tried to google multiple times using different prompts to find this formula but I didn't find any mention of it. I wish I knew a way to search the excel formula directory

  5. #5
    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
    80,647

    Re: How to ignore displayed text to extract from underlying function

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.

  6. #6
    Registered User
    Join Date
    05-25-2020
    Location
    Varies
    MS-Off Ver
    2007 at home, 365 at work, Google Sheets
    Posts
    7

    Re: How to ignore displayed text to extract from underlying function

    Done! I was wondering how to, thanks!

+ 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] Extract 1, 2 or 3-digit Numbers from Text String but Ignore 4-Digit Dates
    By S_Rycroft in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2020, 12:03 PM
  2. Is Excel 2010 ignore the "underlying" filtered rows ?
    By karmapala in forum Excel General
    Replies: 5
    Last Post: 09-12-2019, 01:30 PM
  3. Replies: 4
    Last Post: 09-21-2015, 05:07 AM
  4. Replies: 3
    Last Post: 11-29-2013, 10:27 AM
  5. [SOLVED] Set number value displayed in cell when certain text value is displayed in another
    By chrisswann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2013, 09:07 AM
  6. Replies: 4
    Last Post: 01-03-2007, 05:14 PM
  7. Ignore text Function
    By Grant in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2005, 07:06 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