Find MAX of Multiple Values Using VLOOKUP Function in Excel

Let’s say, you need someone’s maximum data. What is the way? How can we get specific people’s maximum data? VLOOKUP MAXΒ  of multiple values aims to determine the maximum data against specific data. To find particular data within a dataset, the VLOOKUP function is one of the best tools. MAX function with a combination of the VLOOKUP function finds the maximum data in a dataset.


πŸ“ Download Excel File

To practice and get the overview, please download the excel file:


Overview of VLOOKUP Function

VLOOKUP function is the function that looks up values in an array. Any function can be combined with the VLOOKUP function to get desired output.

The general syntax of the VLOOKUP function is,

=VLOOKUP(lookup_value, table_array, column_index_num, [range_lookup])

The logical expression of the VLOOKUP function is,

=VLOOKUP(What to look up, where to look for, range containing return, return indicated as TRUE/1, or FALSE/0)

Learn to Find MAX of Multiple Values Using VLOOKUP Function in Excel with 2 Approaches

To get maximum value against specific data here we will discuss some approaches to get VLOOKUP MAX of multiple values. Here we considered a data set named Sales Data 2022. It contains the sellerβ€˜s name along with their ID, Products, selling quantity, and amount each month. The dataset also has 16 rows and 6 columns.

Method

1. Using VLOOKUP and MAX Functions to Find Max of Multiple Values

To find out the maximum amount from a dataset. You can use the VLOOKUP function where the function always lookup for data in an array. On the other hand, the MAX function always counts the maximum value that is present in the range. Follow the steps,

⬇️⬇️ STEPS ⬇️⬇️

  • Initially select a cell to get the output.
  • Then insert the following formula to measure the maximum amount.
=VLOOKUP(MAX(E6:E16),E6:F16,2,0)

πŸ”¨ Formula Breakdown

πŸ‘‰Β  Logical Expression of the formula: =VLOOKUP(MAX(range),array,col_index,0)

πŸ‘‰Β  MAX(E6:E16) finds the highest quantity 8462.

πŸ‘‰Β  Now VLOOKUP finds the amount for the highest quantity 8462 in range E6:F16 and the result is $8561.

  • Finally, Press Enter and get the amount of $8561 for the highest quantity.

VLOOKUP MAX of Multiple Values to get highest quantity.

πŸ“• Read More: What Is Table Array in VLOOKUP in Excel?

Method

2. Using VLOOKUP and MAXIFS Functions to Find Max Value with Multiple Criteria

To find out the maximum quantity based on multiple criteria from a dataset. Suppose we need to find the selling quantity of the highest ID that sells less than 4000 units and the amount is more than $3000. You can use the VLOOKUP and MAXIFS functions where the function always lookup the maximum value in an array.

⬇️⬇️ STEPS ⬇️⬇️

  • Primarily select a blank cell to get the output.
  • After that insert the formula containing VLOOKUP and MAXIFS functions.
=VLOOKUP(MAXIFS(B6:B16,F6:F16,”<4000β€³,G6:G16,”>3000β€³),B6:G16,5,FALSE)

πŸ”¨ Formula Breakdown

πŸ‘‰Β  Here Logical Expression of the formula: VLOOKUP(MAXIFS(lookup_column,range1,”<4000β€³,range2,”>3000β€³),array,by column,FALSE)

πŸ‘‰Β  (MAXIFS(B6:B16,F6:F16,”<4000β€³,G6:G16,”>3000β€³) finds the ID of seller based on F6:F16,”<4000β€³ and G6:G16,”>3000β€³. The highest ID under this logic is 232.

πŸ‘‰Β  Now VLOOKUP runs an array B6:G16 and it returns value 0(False) until it gets the out from the 5th column based on ID.

  • Finally, Press Enter and get the amount of 1542 for the highest quantity of ID 232.

VLOOKUP and MAXIFS to extract maximum values based on criteria.

πŸ“• Read More: 7 Ways to Use VLOOKUP to Compare Two Lists


Apply Data Validation with VLOOKUP for Multiple Criteria and Values

VLOOKUP function is used for data validation with multiple criteria and values. VLOOKUP function looks for the value in a defined range. But the problem is VLOOKUP function always takes the first value from the multiple if any information is germane to the look-up data. Follow the following steps.

⬇️⬇️ STEPS ⬇️⬇️

  • First, select a cell i.e. I10.
  • Next, insert the following formula.
=VLOOKUP(I7:I8,B6:F16,3,FALSE)

πŸ”¨ Formula Breakdown

πŸ‘‰Β  Here Logical Expression of the formula: =VLOOKUP(look_up_data,array,column_order,FALSE)

πŸ‘‰Β  I7:I8={β€œAlex”;”Sam”} looks at the data from the entire dataset.

πŸ‘‰Β  Now VLOOKUP runs an array B6:F16, takes value from the 3rd column of Product and it returns the value 0(False) until it gets out from the 3rd column based on I7:I8.

  • Finally, Press Enter and get the product that Alex and Sam sell Banana and Avocado.

VLOOKUP function to lookup the value.

But as we can see Alex sells bananas and mangoes; Also Sam sells Avocado, Orange, and Banana. But the VLOOKUP function only takes the first value of the required value.

πŸ“• Read More: 5 Ways to Extract Filtered Data into Another Excel Sheet


How to VLOOKUP Multiple Matches and Criteria

VLOOKUP function generally matches with a single value. For lookup multiple values it is not actually VLOOKUP; Perhaps using a combination of IF, INDEX, and IFERROR a VLOOKUP function can be set up to find multiple matches.

⬇️⬇️ STEPS ⬇️⬇️

  • Initially, select a blank cell i.e. J6.
  • Secondarily, insert the following formula containing IF, INDEX, and IFERROR functions.
=IFERROR(INDEX($D$6:$D$16, SMALL(IF(1=((–($H$6=$B$6:$B$16)) * (–($I$6=$C$6:$C$16))),ROW($D$6:$D$16)-5,””),ROW()-5)),””)

πŸ”¨ Formula Breakdown

πŸ‘‰Β  Primarily, ($H$6=$B$6:$B$16) means find Melissa from $B$6:$B$16 with return value.

πŸ‘‰Β  Secondarily, ($I$6=$C$6:$C$16) dictates to match Jan from $C$6:$C$16 with return value.

πŸ‘‰Β  Thirdly, ((–($H$6=$B$6:$B$16)) * (–($I$6=$C$6:$C$16)))= {0;1;0;0;0;0;0;0;0;1;0} ; Here 1 means TRUE. On the other hand, 0 means FALSE.

πŸ‘‰Β  After that, SMALL(IF(1=((–($H$6=$B$6:$B$16)) * (–($I$6=$C$6:$C$16))),ROW($D$6:$D$16)-5,””),ROW()-5) = {2,10} that means {Orange;Mango}.

πŸ‘‰Β  Then, the INDEX function runs an array with a return value in $D$6:$D$16.

πŸ‘‰Β  Finally, IFERROR deals with the error. If an error is found, then instead of an error it returns a value.

  • Finally, Press Enter and get the product that Melissa sold in the month of January Orange and Mango.

Look up values without VLOOKUP under criteria.

πŸ“• Read More: 6 Solutions If VLOOKUP Returns #N/A When Match Exists in Excel


How to VLOOKUP Multiple Values in One Cell

Sometimes without using VLOOKUP functions there we can run an array with a return value defining a range to look up desired values. Suppose you need to get sellers who sell multiple products and you intend to bring them together. Follow the below procedure.

⬇️⬇️ STEPS ⬇️⬇️

  • Primarily, select a blank cell i.e. I6.
  • Secondarily, insert the following formula containing TEXTJOIN, and IF functions.
=TEXTJOIN(β€œ,”,TRUE,IF($B$6:$B$16=H6,$D$6:$D$16,””))

πŸ”¨ Formula Breakdown

πŸ‘‰Β  $B$6:$B$16= H6 means find the data of H6 in $B$6:$B$16 and also match info with $D$6:$D$16.

πŸ‘‰Β  IF($B$6:$B$16=H6,$D$6:$D$16,””)= {β€œBanana”;””;””;””;””;””;””;””;”Mango”;””;””}

πŸ‘‰Β  TEXTJOIN(β€œ,”,TRUE,IF($B$6:$B$16=H6,$D$6:$D$16,””)) means join texts {β€œBanana”;”Mango”} by comma(,).

  • Lastly, by Pressing Enter, we get the product that Alex sold Banana and Mango.
  • Later on, if we input H7= Sam, H8= Afra, and H9= Melissa, we can get data respectively.

Use of TEXTJOIN function to gater data from multiple columns.

πŸ“• Read More: 8 Ways to VLOOKUP to Return Multiple Values Vertically in Excel


πŸ“„ Important Notes

πŸ–ŠοΈΒ  Keep in mind that, VLOOKUP data only takes the first data from multiple data.

πŸ–ŠοΈΒ  VLOOKUP also can be replaced by some formula combination.

πŸ–ŠοΈΒ  Be cautious during using multiple functions altogether. Sometimes it may massacre.


πŸ“ Takeaways from This Article

πŸ“ŒΒ  Learn the use of the VLOOKUP function along with the MAX function to get maximum values under some criteria.

πŸ“ŒΒ  We also showed you how to look up data without using the VLOOKUP function.


Conclusion

In this article, we tried to demonstrate every possible way to find maximum data using VLOOKUP and MAX functions. I hope you enjoyed your learning. Queries, as well as suggestions, is appreciable. Please leave your thoughts in the comment section. For better understanding and new learning don’t forget to visit www.ExelDen.com.


Related Articles

(Visited 70 times, 1 visits today)
MD Tanvir Rahman

MD Tanvir Rahman

Hello, I am Tanvir. Graduated from BUET. Had a year-long Experience at Operation of Vitacan Industries Ltd. I found Excel is the most unique software to reduce both time and paper. Now, I am an Excel enthusiast, love to play with data and publish content.

We will be happy to hear your thoughts

Leave a reply

ExcelDen
Logo