+ Reply to Thread
Results 1 to 2 of 2

If cell contains a subtext that appears in an array, then return that text

  1. #1
    Registered User
    Join Date
    09-06-2017
    Location
    Pretoria
    MS-Off Ver
    Microsoft 365
    Posts
    10

    If cell contains a subtext that appears in an array, then return that text

    Hi

    I am looking for a formula that can assist with the following:

    I have a string in a cell that is an address e.g. ALEXANDER MEWS 1 GARSFONTEIN. I also have a list of whole bunch of suburbs on another excel spreadsheet. I would like Excel to search within the cell containing the address and if it find a suburb (that exists withing my suburb column, to then return that suburb on the adjacent cell. An added function would be if it could extract it, and then return the extracted value in the adjacent cell. Not sure if this can be done. I was playing around with the following example formula, but it is not working:



    =IF(ISNUMBER(SEARCH(list of suburbs,A2)),"list of suburbs,suburbs,"")

    Hope someone can assist? I have about 5000 cells to check...thank you.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: If cell contains a subtext that appears in an array, then return that text

    Am I correct to assume that the List of Suburbs is a name range from another worksheet?

    If that is the case then try the formula below

    =IF(ISNUMBER(SEARCH(A2,LISTOFSUBURBS)),LISTOFSUBURBS,"")

    Copy down until last entry
    Last edited by Syrkrasi; 09-06-2017 at 09:50 AM.

+ 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] Formula to indicate when a text string appears in an array
    By Monkihunta in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2014, 07:13 AM
  2. Replies: 5
    Last Post: 06-19-2014, 10:04 PM
  3. [SOLVED] If text appears in a table next to a date, return a value
    By dancing-shadow in forum Excel General
    Replies: 3
    Last Post: 11-27-2013, 09:23 AM
  4. [SOLVED] Formula to search array for text and return value from an offset cell
    By tif4300 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2012, 09:04 PM
  5. Find text in array & return adjacent cell value
    By econbizer in forum Excel General
    Replies: 13
    Last Post: 10-13-2012, 01:26 AM
  6. Replies: 3
    Last Post: 08-06-2009, 04:27 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