+ Reply to Thread
Results 1 to 4 of 4

Finding 2 references

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    383

    Finding 2 references

    Hi All,

    I am using the following formula to find the word 'Purfleet' from a strong of data.

    I'd like to also find the word 'scrap' as well. Is that possible with the formula I'm using?

    =IF(ISNUMBER(SEARCH("*Purfleet*",G481)),"Purfleet","")

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Finding 2 references

    =IF(ISNUMBER(SEARCH("*Purfleet*",G481)),"Purfleet",IF(ISNUMBER(SEARCH("*scrap*",G481)),"scrap",""))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Finding 2 references

    You could do it like this:

    =TRIM(IF(ISNUMBER(SEARCH("*Purfleet*",G481)),"Purfleet","") & " " & IF(ISNUMBER(SEARCH("*scrap*",G481)),"Scrap",""))

    so you will get:

    Purfleet
    Scrap
    Purfleet Scrap

    or a blank, depending on whether the words are there or not.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    383

    Re: Finding 2 references

    Perfect. Thanks guys. Both options do the trick.

+ 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] References In Object Formulas Must Be External References To Worksheets Error
    By zanshin777 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-28-2015, 07:40 AM
  2. Replies: 0
    Last Post: 02-11-2013, 08:12 AM
  3. Finding References of Broken Links
    By Jenn68 in forum Excel General
    Replies: 2
    Last Post: 06-10-2012, 08:40 AM
  4. Finding External Workbook references
    By paxile2k in forum Excel General
    Replies: 1
    Last Post: 12-16-2010, 06:21 PM
  5. finding references before deleting a sheet
    By carsto in forum Excel General
    Replies: 4
    Last Post: 11-10-2006, 03:20 PM
  6. [SOLVED] finding all references to a cell
    By Brett in forum Excel General
    Replies: 1
    Last Post: 03-07-2005, 10:06 AM
  7. Finding Cell References
    By Zokess in forum Excel General
    Replies: 2
    Last Post: 02-04-2005, 01: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