+ Reply to Thread
Results 1 to 7 of 7

Search within a formula

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Search within a formula

    I have a row of cells that use the formula "=HYPERLINK("http://www.google.com/search?hl=en&q="&E15,E15)" that places a hyperlink in a cell based on data in Column E. In some cases I've edited the parts in quotes and replaced it with another link, i.e. "=HYPERLINK("http://www.Microsoft.com",E2)". I've set up a new column to show True/False to identify which rows have Google still in the hyperlink and which I've edited.

    So far all my attempts fail as long as the source column contains the HYPERLINK formula, presumably because it has an equal sign at the beginning. If I remove the equal sign from the HYPERLINK formula, my search formulas work. I'd like to be able to perform the searches without having to modify the source column.

    I've used the formula "=ISNUMBER(SEARCH("*google*",H3))" to search Column H for the formulas that contain "google" but unless I remove the = sign from column H it reports false every time. The native Excel Search works (Ctrl-F), I just can't seem to get a formula to do it.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Search within a formula

    Your profile shows Excel 2010. If your profile is accurate I can not think of a formula way to do this (referring directly to the formula in a cell).

    If you have newer version(s) starting with 2013 there is a new function called FORMULATEXT.
    Dave

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Search within a formula

    Try ,,

    Do FIND/REPLACE

    Find :=H, Replace: *H

    Do your SEARCH

    then reverse the FIND/REPLACE

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Search within a formula

    you can try
    Please Login or Register  to view this content.
    and your SEARCH formula. But every link will be visible as Google After click can be MS if http will be microsoft.

    for Ex2013 and above
    Please Login or Register  to view this content.
    or look here: FORMULATEXT for Ex2010

    I think 3rd option is better
    Last edited by sandy666; 02-13-2017 at 02:19 PM. Reason: link added

  5. #5
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Search within a formula

    I have updated my profile, I am running Office 2016/365...thanks for that.

    I was unaware of the FORMULATEXT function, this is what I needed, many thanks!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Search within a formula

    You're welcome. Thanks for the feedback and updating your profile.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Search within a formula

    Thanks for the feedback

+ 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] Search exact word within a string - SEARCH formula help
    By chullan88 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-23-2016, 06:11 PM
  2. [SOLVED] extend search formula to mutiple search for single a cell
    By lagiosman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2014, 01:16 PM
  3. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  4. [SOLVED] How to ask formula to search for multiple values within one search?
    By Buzz57 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2014, 11:14 PM
  5. Modify this Search Formula to search across a range of cells
    By zicitron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2013, 08:11 AM
  6. Formula to search, match value, search again, return SUM
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 11:01 PM
  7. Replies: 5
    Last Post: 03-29-2012, 04:12 AM

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