+ Reply to Thread
Results 1 to 13 of 13

Lookup value

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Lookup value

    Hi Everyone,

    Hope someone can help please

    Column A

    Marketing ABC
    DCF Marketing
    Sales DEF
    HGF Sales

    What I want is to look up column A and if it contains any value in Column C then return value in D

    Column C------------Column D

    Marketing------------Marketing Team
    Sales-----------------Sales Team

    So the result will look like this

    Column A-------------Column B

    Marketing ABC-------Marketing Team
    DCF Marketing-------Marketing Team
    Sales DEF------------Sales Team
    HGF Sales------------Sales Team

    It has to look for data in the table rather than multiple if functions otherwise it will be a very long if functions . Any suggestion is much appreciated.

    Thanks

    Kim
    Attached Files Attached Files
    Last edited by hiepkim; 07-13-2020 at 12:26 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Lookup value

    Hello & Welcome to the Forum,

    A vlookup should work for you >> =VLOOKUP(A1,$C$1:$D$1,2,0)

    https://www.contextures.com/xlFunctions02.html
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Hi Jeff,

    Thanks for the reply. No it doesn't since value in column A is not the same as value in column C. Cheers

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Lookup value

    Can you set up a lookup table for the list or are there too many?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Hi Sam, unfortunately it is not possible since each month it will be different. e.g "Marketing for Jun20" so just need to capture the main word in the text

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Lookup value

    to avoid wasting your time and those helping you I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like. (see yellow banner above)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Hi Ford,

    Examples uploaded.

    Thanks

    Kim

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,970

    Re: Lookup value

    In F2 copied down:

    =VLOOKUP(E2&"*",$A$2:$B$13,2,0)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Hi Ali,

    Thanks for the response but I am after the value in B column (expected result). E:F is look up table.

    Thanks

    Kim

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,970

    Re: Lookup value

    Oops! Try this:

    =IFERROR(LOOKUP(1000,SEARCH($E$2:$E$3,A2),$F$2:$F$3),"")

  11. #11
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Hi Ali,

    Work like a charm. Thanks heaps.

    BTW, what is the 1000 in lookup is for? Thanks

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Lookup value

    Just a value that is larger than anything you might have in your table.

  13. #13
    Registered User
    Join Date
    03-31-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Lookup value

    Thank you for all your help

+ 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] Lookup: Lookup employee id and return value in cell x basued on most recent start date
    By jekeith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2018, 12:56 PM
  2. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  3. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  6. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  7. Replies: 7
    Last Post: 06-19-2011, 12:51 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