+ Reply to Thread
Results 1 to 7 of 7

Complex VLOOKUP with LEFT RIGHT function

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    71

    Complex VLOOKUP with LEFT RIGHT function

    Hi,

    Herewith I attached two excel file.

    01. Cost Center

    Cost center file contain cost center code and respective cost center controller name.

    02. Email Address
    It has two taps.
    one is Email list - contain all the name of cost centre controller name and their email address

    Other tap is - Mapping. - contain cost center code in A column.

    B column i want a function to get email address of all the cost centre controller.

    Already i wrote a function it works only for one names.

    Some time for one cost centre, there may be more than one cost centre controller. In this case i want email address of both in one cell with comma ",".

    for example in B4 I want [email protected] , [email protected]

    Please help me to sole this issue.

    ThanksCost Centre.xlsxemail address.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Complex VLOOKUP with LEFT RIGHT function

    I used UDF MultiClookup in the attached file

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    71

    Re: Complex VLOOKUP with LEFT RIGHT function

    Wow!!!. It works perfectly. Thank you very much. Is it possible to write excel formula by using worksheet functions?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Complex VLOOKUP with LEFT RIGHT function

    Yes we can....

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    71

    Re: Complex VLOOKUP with LEFT RIGHT function

    Hi seventhsense,

    Now I got a new idea based on your code. My concern is structure file is a big sized book contain all the details with many tabs.

    I can map with external file by using the function you suggest.

    for example:

    =MultiClookup(VLOOKUP(A2,'C:\Users\janagan\Desktop\[Cost Centre.xlsx]Sheet1'!$A:$B,2,FALSE),'Email List'!$A$2:$A$5,'Email List'!$B$2:$B$5)
    Thank you very much for your help. Thanks a lot.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Complex VLOOKUP with LEFT RIGHT function

    Yes you can do it because the vlookup is going to get the names from the external workbook and my MultiClookup UDF will just get the result arrived by vlookup and match it in another sheet of same workbook.

    So no issues in using it in the way which you shown in the initial post

  7. #7
    Registered User
    Join Date
    02-19-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    71

    Re: Complex VLOOKUP with LEFT RIGHT function

    Thanks you very much for your support.

+ 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. Can I use LEFT function in VLOOKUP?
    By greyscale in forum Excel General
    Replies: 9
    Last Post: 06-03-2021, 09:55 AM
  2. vlookup with left function
    By bronkista in forum Excel General
    Replies: 5
    Last Post: 06-22-2011, 04:09 PM
  3. Using VLookup with Left function
    By dcaraher in forum Excel General
    Replies: 2
    Last Post: 01-13-2011, 12:31 PM
  4. VLOOKUP w/ LEFT Function
    By AlanH in forum Excel General
    Replies: 10
    Last Post: 12-07-2009, 08:12 PM
  5. [SOLVED] Vlookup and left function
    By Corey Osborn in forum Excel General
    Replies: 3
    Last Post: 03-23-2006, 02:40 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