+ Reply to Thread
Results 1 to 3 of 3

If a cell contains two specific groups of text in a range of cells, how to create a link?

  1. #1
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Question If a cell contains two specific groups of text in a range of cells, how to create a link?

    A1-A100 contains a list of links (created from a macro). They have 2 sets of text.
    Ex: 100E id.jpg or 2442E id.jpg
    Column B contains the list of all the pole numbers, from 100E(B2) to 2442E (B100)

    How do I get the IF statement to say: If the word "id" and the pole number from B2 are found in the same cell somewhere in A1-A100, then create a hyperlink at C2 (I believe I know how to do the hyperlink part). That way I can just drag the formula from C2 down the list so that I don't have to type for C3 the pole number. Instead it will just reference B3.

  2. #2
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: If a cell contains two specific groups of text in a range of cells, how to create a li

    Any way I can change the SEARCH function part of the IF formula so that it doesn't search a word but all the text that's in a specific cell so that I can use:

    IF(SEARCH("B2","*id*"), then HYPERLINK(I know how to do this part), "")

    The formula/function I'm trying to use doesn't let me use B2. It only lets me put THE WORD "100E".
    Last edited by JPWRana; 05-29-2013 at 02:16 PM. Reason: color change on some lettering.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: If a cell contains two specific groups of text in a range of cells, how to create a li

    Please Login or Register  to view this content.
    Notice the space before " id"
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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