1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User


  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Vlookup - More than 5 mil data

Discussion in 'VBA Macros' started by Niranjanrajrishi, Jun 12, 2018.

  1. Niranjanrajrishi

    Niranjanrajrishi Member

    I searched many forums to find a better coding to apply Vlookup in multiple columns. My file has 2 sheets and the Sheet1 requires values from the Sheet2. I tried multiple coding but the huge data turned everything down.

    Can someone help me with a better coding which works with huge data?
    Code (vb):
    Set Rng = Range(Cells(2, "AH"), Cells(Rws, "AH")).SpecialCells(xlCellTypeVisible)
          If Not Rng Is Nothing Then Rng.Value = "=IFERROR(VLOOKUP(AG:AG,'Previous Week Data'!AF:AG,2,0),""Need to verify"")"
        End If
  2. Marc L

    Marc L Excel Ninja


    As SpecialCells is a mess with big data, use a filter or an advanced filter.

    Often huge data means Access instead of Excel …​
  3. Chihiro

    Chihiro Excel Ninja

    If you have access to PowerQuery, that's your best option within Excel for large data set. Otherwise, I'd consider using Access, MS SQL, MySQL or other database. Depending on what's available.

    Other than that, consider splitting file into manageable size.
  4. Debaser

    Debaser Active Member

    If you can sort the data on the Previous week sheet using column AF, you can use the binary search version of VLOOKUP which is much faster.

Share This Page