How to Use the LARGE Function with the VLOOKUP Function in Excel – 2 Methods

This is an overview.

how to use large function in excel with vlookup

 


Method 1 – Combine the LARGE and the VLOOKUP Functions to Extract Associated Text Data in Excel

The dataset showcases students’ names, IDs, their CGPAs (Cumulative Grade Point Average), their departments, and their home addresses. To see the names of the top 3 students with the highest CGPAs.

Steps:

  • Select a cell where to display the highest CGPA. Here, E15.

Selecting a Particular Cell to Use LARGE Function with VLOOKUP Function in Excel

  • Enter the formula into the cell.
=VLOOKUP(LARGE($C$5:$C$11,D15),$C$5:$F$11,2,0)

Entering a Formula into the Cell

Formula Breakdown

  • LARGE($C$5:$C$11,D15) —>  finds the n-th largest value (n=D15) in C5:C11. Here, D15=1, looks for the highest CGPA value.
  • VLOOKUP(LARGE($C$5:$C$11,D15),$C$5:$F$11,2,0)—> The VLOOKUP function finds the highest CGPA value in C5:C11. It returns the exact match of the text data corresponding to the highest CGPA value in the 2nd column (Name) of the selected range (C5:F11).
  • Press Enter to see the result.

Ricky has the highest CGPA (3.79). His name is displayed in E15.

Extracting the Associated Text Data  by Using LARGE and VLOOKUP Functions

  • Drag down the Fill Handle to autofill the formula in E16:E17.

Using Fill Handle to Autofill Data

The top 3 students’ names are displayed.

Combining LARGE and VLOOKUP Functions in Excel

Read More: How to Use Excel Large Function with Text


Method 2 – Nest the LARGE, VLOOKUP, and ROWS Functions to Sort Text data in Descending Order in Excel

Steps:

  • Select a cell to sort the names. Here, H5.

Selecting a Particular Cell to Use LARGE Function with VLOOKUP Function in Excel

  • Enter the formula into the cell.
=VLOOKUP(LARGE($C$5:$C$11,ROWS(C$5:$C5)),$C$5:$F$11,2,0)

Entering a Formula into the Cell

Formula Breakdown

  • ROWS(C$5:$C5)—> Returns the row number of the reference.
  • LARGE($C$5:$C$11,ROWS(C$5:$C5))—> The LARGE function finds the largest number in C5:C11, in descending order.
  • VLOOKUP(LARGE($C$5:$C$11,ROWS(C$5:$C5)),$C$5:$F$11,2,0)—> The VLOOUP function returns the exact match, corresponding to the CGPA value in column 2 (Name) of the selected range (C5:F11).
  • Press Enter to see the result.

Sorting the Associated Text Data  by Using LARGE, VLOOKUP, and ROWS Functions

  • Drag down the Fill Handle to see the result in the rest of the cells.

Using Fill Handle to Autofill Data

This is the output.

Nesting LARGE, VLOOKUP, and ROWS Functions in Excel


Notes

The LARGE and the VLOOKUP functions have limitations:

  • The VLOOKUP function returns data from  columns that are situated on the right-hand side of the lookup value only.
  • The LARGE function will not work if the second argument of the function (n-th value) is either a negative number or the assigned value is greater than the number of rows in the specified range.
  • The LARGE function will not work if the selected array is empty or does not include numeric values.

Read More: How to Use Excel LARGE Function with Criteria


Download Practice Book

Download the practice workbook.


Related Articles


<< Go Back to Excel LARGE Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abu Sina Ibne Albaruni
Md. Abu Sina Ibne Albaruni

Md. Abu Sina Ibne Albaruni holds a BSc in Mechanical Engineering from Bangladesh University of Engineering and Technology. He is a dedicated employee of the ExcelDemy project. He has written quite a large number of articles for ExcelDemy. Besides, he has expertise in VBA. He efficiently automates Excel issues using VBA macros and actively engages in the ExcelDemy forum, offering valuable solutions for user interface challenges. His areas of interest in work and study span MATLAB, Machine Learning,... Read Full Bio

2 Comments
  1. Thank you for explaining how to use the LARGE function with the VLOOKUP function in Excel. I find this information very helpful in my work. However, I am curious if there are any limitations to using these functions together? Can they be used with larger datasets or is there a point where they become inefficient? Thank you for your article and any additional information you can provide.

    • Reply Avatar photo
      Md. Abu Sina Ibne Albaruni Apr 4, 2023 at 11:23 AM

      Hi YOGAAGA

      Thank you very much for your comment. A few limitations while working with these functions have been discussed in the NOTES section. Please go through them. In addition, here in the dataset, the VLOOKUP function has been used in combination with the LARGE function. Both the VLOOPUP and LARGE functions go through the entire range of data every time they are called. The LARGE function needs to sort the data before determining the result. The VLOOKUP function looks for the data in a specified range. The whole process can be computationally expensive in large datasets. So, this formula can be time-consuming when dealing with large amounts of data.

      Moreover, this formula may return identical values if it encounters duplicates in the dataset. For example, in our dataset, if there are multiple students with the same CGPA, the formula will return the same student’s name for each duplicate value.

      Thank you once again. Let me know in the comments if you have any further queries.

      Regards,
      Md. Abu Sina Ibne Albaruni
      Team ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo