+ Reply to Thread
Results 1 to 4 of 4

Use VLOOKUP to retrieve a value based on a word within a cell

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Office 365 (2016 version)
    Posts
    6

    Use VLOOKUP to retrieve a value based on a word within a cell

    Hello,

    First of all, I thank in advance for any possible help.

    I attach here an example of a file for my problem.

    This file has 2 sheets, and I want to retrieve in Sheet A using VLOOKUP Function a value from Sheet B. For example, in cell A6 the correct value from sheet B it should display would be: http://example.com/news-usa and I would have to search and retrieve the value based on the word "USA" and not the whole sentence from Sheet B cell B5.

    Does anyone know how to properly do this? Please have in mind that the original file I have to work has thousand lines so I should be able to find a method that could speed this up.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Use VLOOKUP to retrieve a value based on a word within a cell

    Enter formula in cell A2 on Sheet A and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C
    1 URL New URL Title
    2 http://example.com/home http://oldsiteexample.com/home Home
    3 http://example.com/products http://oldsiteexample.com/products Products
    4 http://example.com/news http://oldsiteexample.com/newsflash Newsflash from the World
    5 http://example.com/news-usa http://oldsiteexample.com/newsflash-usa Newsflash from USA
    6 http://example.com/news-germany http://oldsiteexample.com/newsflash-germany Newsflash from Germany
    7 http://example.com/news-uk http://oldsiteexample.com/newsflash-uk Newsflash from UK
    Last edited by AlKey; 04-09-2016 at 07:16 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Office 365 (2016 version)
    Posts
    6

    Re: Use VLOOKUP to retrieve a value based on a word within a cell

    Hmmm... I get an error: "There's a problem with this formula" - "Not trying to type a formula, blablabla" I am using Excel 2016

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Use VLOOKUP to retrieve a value based on a word within a cell

    Quote Originally Posted by Nelzon View Post
    Hmmm... I get an error: "There's a problem with this formula" - "Not trying to type a formula, blablabla" I am using Excel 2016
    There is no problem with the formula. Please see attached file. I have two formulas there one in A2 and the other in D2 just to illustrate.
    Attached Files Attached Files

+ 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] Retrieve data based on a search word
    By tnsvolley in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-24-2015, 11:33 AM
  2. [SOLVED] Retrieve Data From Cell Based in Array Based on LARGE Function
    By justarandomguy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 02:31 AM
  3. Retrieve multiple cell references based on a criteria
    By Danut Alexandru in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2014, 02:16 PM
  4. Vlookup retrieve cell data and conditional formatting
    By Philly123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2012, 10:50 PM
  5. [SOLVED] Retrieve value based on the value of another cell (Lookup)
    By ACDC in forum Excel General
    Replies: 12
    Last Post: 03-27-2012, 05:45 PM
  6. Replies: 2
    Last Post: 01-13-2012, 10:01 AM
  7. [SOLVED] Vlookup Twist: retrieve one value based on Multiple criteria
    By mellowe in forum Excel General
    Replies: 5
    Last Post: 01-19-2006, 08: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