+ Reply to Thread
Results 1 to 4 of 4

Vlookup and concatenate

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Post Vlookup and concatenate

    Hi All,
    I have 2 sheets, first sheet has Unique value by which i will compare the second sheet.

    However, in the second sheet i have Unique value 3 times in a cells and corresponding column cells has 3 values against this Unique value.

    I want to use Vlookup to find this Unique value and then use concatenate the corresponding values as my result.

    Example:
    Sheet A
    Cell A2=N100
    Cell A3=N200

    Sheet B
    Cell A2=N100 B2=OPEN
    Cell A3=N100 B3=RELEASE
    Cell A4=N100 B4=CLOSE
    Cell A5=N200 B3=OPEN


    RESULT SHOULD BE
    Sheet A
    Cell B2= OPEN RELEASE CLOSE


    Thanks in advance for your help.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Vlookup and concatenate

    I can just do it with VBA, maybe somebody else has a formula approach.
    Click the button in the attached example.


    This is the code used,
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: Vlookup and concatenate

    Thanks Dave for the Quick Reply.

    I dont know how this VBA works and how i can use it but i'll waiting for someone who can help with excel formula for the request.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup and concatenate

    Using the sample sheet in post #2 and assuming all the items on Sheet2 are sorted together as described and shown:

    1) On Sheet2 put this formula in C2 and copy down as far as needed:
    =IF(A2=A3, B2&" "&C3, B2)

    2) On Sheet1 put this formula in B2 and copy down:
    =VLOOKUP(A2, Sheet2!A:C, 3, 0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Concatenate/VLOOKUP
    By Jerche12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2014, 02:08 AM
  2. vlookup and concatenate
    By Jerseynjphillypa in forum Excel General
    Replies: 1
    Last Post: 09-01-2012, 02:19 AM
  3. VLOOKUP with CONCATENATE
    By johnjohns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 07:59 AM
  4. Concatenate and Vlookup
    By AaronH in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-18-2008, 07:01 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