+ Reply to Thread
Results 1 to 7 of 7

How to apply Vlookup in Same column with diffrent Table array

  1. #1
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    95

    How to apply Vlookup in Same column with diffrent Table array

    Hi All,
    Hope you are doing great, I have attached a sample file where I am developing a macro and stuck in small piece.

    * I have to apply vlookup in Data sheet "B" column, lookup tables are in DUmp sheet column "A-C" , again if there are #n/a we have to do same procedure from column "E-G" and so on..

    I did it but same is taking too long time (because main file can have 30000 -50000 rows) as I am applying vlookup in each cell. could you please let me to reduce time of running macro
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    As it exists duplicates in Dump worksheet, it's better you elaborate how to with a complete explanation and samples …

  3. #3
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    95

    Re: How to apply Vlookup in Same column with diffrent Table array

    Please see the attached there is no dup. , please also note we can not combine both table
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool

    According to the last attachment a starter demonstration :

    PHP Code: 
    Sub Demo1()
            
    Dim C%, VR&
        
    With CreateObject("Scripting.Dictionary")
            For 
    1 To Sheet1.UsedRange.Columns.Count Step 4
                V 
    Sheet1.Cells(C).CurrentRegion.Value2
                
    If IsArray(VThen For 2 To UBound(V): .Item(V(R1)) = V(R3): Next
            Next
                V 
    Sheet2.Range("A2"Sheet2.[A1].End(xlDown)).Value2
            
    For 1 To UBound(V)
                If .
    Exists(V(R1)) Then V(R1) = .Item(V(R1)) Else V(R1) = Empty
            
    Next
                Sheet2
    .[B2].Resize(UBound(V)).Value2 V
               
    .RemoveAll
        End With
    End Sub 
    ► Do you like it ? ► ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 08-28-2019 at 08:14 AM.

  5. #5
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    95

    Re: How to apply Vlookup in Same column with diffrent Table array

    Thanks Marc, can we do something in my code for improvement that is because I have given a sample file and if I use above code I have to redesign whole macro because I am working on hude data / multiple columns.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    As my demonstration is yet designed for multiple columns big data …

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: How to apply Vlookup in Same column with diffrent Table array

    @Marc L
    Please use code tags ( # button) instead of PHP tags. Thanks

+ 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] How do vlookup table array 2 column in excel
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2015, 09:28 AM
  2. [SOLVED] vlookup: search for value in SECOND column of table array and return value from FIRST
    By matt_pl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2014, 06:02 AM
  3. [SOLVED] Need to apply vlookup in current sheet with table array from another workbook
    By deepak.sirsale in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2014, 04:26 AM
  4. VLookup into diffrent worksheets in a diffrent workbook
    By joffy1979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-26-2013, 11:35 AM
  5. [SOLVED] vlookup table array and column index number to the left
    By Mengo85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2012, 08:24 AM
  6. Using VLOOKUP to apply an ARRAY formula
    By monkdelafunk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2008, 10:22 PM
  7. Not able to apply VLOOKUP Lookup value present in Table array
    By mustafamsaleem in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2006, 10:12 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