+ Reply to Thread
Results 1 to 7 of 7

VLookup full list and return value (Formula fix)

  1. #1
    Registered User
    Join Date
    02-29-2024
    Location
    Amsterdam
    MS-Off Ver
    2024
    Posts
    3

    VLookup full list and return value (Formula fix)

    I have a list of 10 URL's in column A, that matches 10 values from a second column (B).

    However, in the third column (C) I have a list of 100 URL's. I would like to know from this list if it partially contains one of the words of the first column.
    If this is the case, it should return the matching value of the second column. I tried multiple Vlookup options, but can't find the 100% perfect formula

    E.g.

    Column A, Column B
    A, Red
    B, Green
    C, Blue

    Column C
    ADF, (it matches "A" so should return "Red" in column D)
    BGK, (it matches "B" so should return "Green" in column D)
    TCP, (it matches "C" so should return "Blue" in column D)
    CPG, (it matches "C" so should return "Blue" in column D)

    Does somebody know if this is possible, and how? Help would be really appreciated! As it will automate a huge amount of bulk work for me.
    Last edited by SrDaan; 02-29-2024 at 09:59 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,745

    Re: VLookup full list and return value (Formula fix)

    what if it had
    ACT ???

    A sample sheet would help here, and possibly will enable a quicker and more accurate solution for you.


    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    HOW TO ATTACH YOUR SAMPLE WORKBOOK:, Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-29-2024
    Location
    Amsterdam
    MS-Off Ver
    2024
    Posts
    3

    Re: VLookup full list and return value (Formula fix)

    Hi Etaf,

    ACT will not happen, as the values will be unique in column C. However, it can only happens that it occurs more often in the list.

    I've added an attachement!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: VLookup full list and return value (Formula fix)

    Try this in D2 and copy down.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,745

    Re: VLookup full list and return value (Formula fix)

    is it just coincidance that you are matching now most of the string
    anyway
    =INDEX($B$2:$B$34,MATCH(RIGHT(C2,LEN(C2)-7),$A$2:$A$34,0))
    does that work in the real data - seems to in the sample

    as the url is preceded by 7 characters in all cases

    otherways to this

    But does NOT seem to be the same as original question , which was that a character appeared within a string , not matching the whole string

    you have in profile
    MS-Off Ver
    2024

    i dont think office 2024 has been released - is that the version of office - excel you have - or is that the version of an excel 2016/2019/2021 etc
    Attached Files Attached Files
    Last edited by etaf; 02-29-2024 at 11:57 AM.

  6. #6
    Registered User
    Join Date
    02-29-2024
    Location
    Amsterdam
    MS-Off Ver
    2024
    Posts
    3

    Re: VLookup full list and return value (Formula fix)

    you guys are legends!

    I think indeed I can make it work with the 7 character extraction. thanks a lot! :D

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,745

    Re: VLookup full list and return value (Formula fix)

    you are welcome

+ 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. Formula to return only a portion of the full file path
    By Lbischoff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-14-2021, 04:27 PM
  2. Vlookup - If cell contains characters from list, use list to return value
    By xo1darcie1ox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-22-2016, 03:10 PM
  3. Search a range Last Names for age & return the value to a List of FULL NAMES
    By LunarLights in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2014, 05:02 PM
  4. Replies: 8
    Last Post: 03-29-2014, 10:05 AM
  5. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  6. [SOLVED] Formula to return full month date
    By hecgroups in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2013, 11:17 AM
  7. Formula needed to return values for partial or full match
    By IntRes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2012, 08:32 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