+ Reply to Thread
Results 1 to 6 of 6

Search for Text and return the text

  1. #1
    Registered User
    Join Date
    06-11-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    MS 2016
    Posts
    2

    Search for Text and return the text

    Can you suggest a formula which would populate the data says If A2 contains "Apple", returns "Apple" else "Huawei" or "Nokia".
    Note that the location of the brand, Capacity, Year and Model may not be arranged in that order.

    Excel.JPG

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Search for Text and return the text

    Please Login or Register  to view this content.
    That do it?

    Also I generally hope that you've got the data split into distinct rows instead of having all that crammed in one cell.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Search for Text and return the text

    Brand (B2):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For the rest:
    Could you attached sample file, please? Mess up info in description if you know that could be arranged in other order.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    06-11-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    MS 2016
    Posts
    2

    Re: Search for Text and return the text

    Hi Ben,

    Thanks for your response.. unfortunately it was not as easy because the descriptions were not consistent.. Perhaps my examples were really bad.
    some of the examples could be:

    "Apple SOL fer, x3, ex2, 256GB, xxed, 2018, yuayxx, STE, A5"

    I hope the function would be able to find its brand from the description.
    Is it possible that I make a list of brands "Apple, Huawei, Xiaomi, Lenovo, LG, Samsung", then if Cell A2 matches any of those brands from the list, it would populate the brand to Cell B2?

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Search for Text and return the text

    Do you mean quotes in description? Indeed then both formulas give "Apple as result.
    Is that issue now?

  6. #6
    Registered User
    Join Date
    01-24-2019
    Location
    Lancaster County, PA USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Search for Text and return the text

    Is this an import from a flat file (i.e: .csv)? You may be able to use Text to Columns with a comma delimiter.

+ 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. Replies: 6
    Last Post: 05-31-2019, 12:39 AM
  2. Replies: 5
    Last Post: 04-06-2019, 02:18 AM
  3. IFERROR - SEARCH - Look for date/text values and return a specified text name
    By chrisbay2324 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2018, 03:26 PM
  4. Search and Match partial text string to full text and return a value
    By homa5424 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2017, 10:52 AM
  5. Search a cell for text, and return all surrounding text between two cells
    By TRAPSON in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-13-2017, 02:19 PM
  6. Replies: 3
    Last Post: 06-17-2013, 01:09 PM
  7. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 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