This post will guide you how to use** Excel LARGE function** with syntax and examples in Microsoft excel.

The Excel LARGE function returns the largest numeric value from the numbers that you provided. Or returns the largest value in the array. It also can be used to get the nth largest value from a range of cells or an array.

**For example**, the LARGE function can find the first, second, third or nth smallest value in a list or an array.

The LARGE function is a build-in function in Microsoft Excel and it is categorized as a Statistical Function.

The LARGE function is available in Excel 2016, excel 2013, excel 2010, excel 2007, excel 2003, excel XP, excel 2000, excel 2011 for Mac.

The syntax of the LARGE function is as below:

= LARGE (array,nth)

Where the LARGE function arguments are:

**array**-This is a required argument. An Array or a range of cells that contains numeric values from which you want to get the nth largest value.**nth**– This is a required argument. The position of the number that you want to return

**Note:**

- If the first argument is empty, then the LARGE function returns #NUM! Error.
- If nth is less than or equal to 0 or if nth is greater than the number of values in array, the LARGE function returns the #NUM! Error.
- If nth is the number of values in array, then LARGE (array,1) returns the largest value, and LARGE(array,n) returns the smallest value.

The below examples will show you how to use Excel LARGE Function to get the largest value form the numbers in a range.

**#1** To get the largest value from a range B1:B4, just using the following excel formula:

=LARGE(B1:B4,1)

The above formula returns the largest number from a range B1:B4, it returns 113.

** **

**2#** To get the second largest value from the Range B1:B4, you can use the following LARGE function:

=LARGE(B1:B4,2)

The second argument nth in the above LARGE function is 2, so it will fetch the second largest function in the range B1:B4. It returns 34.

**3#** To get the largest value from the range B1:B4 that contains blank cells, enter into the following formula in the Cell C1:

=LARGE(B1:B4,1)

The LARGE function will ignore blank cells in the Range. You will see that the Cell B3 is a blank cell, and it is ignored by the LARGE function. The largest value is still returned as 113.

**4#** To get the largest value from the range B1:B5 that contains text string, specific character and logical values. Using the following LARGE formula:

=LARGE(B1:B5,1)

The LARGE function will ignore values in the range B1:B5 that contain text string, specific character and logical value.

**5#** To get the largest value from the range B1:B5 that contain an error, using the below formula:

=LARGE(B1:B5,1)]]>

In the previous post, we talked that how to get the nth smallest value in a range and how to get the relative value of the same row of the nth smallest value in a range or array. And this post will guide you how to **get the nth largest value in a range** in excel. How to extract the relative value based on the position of the nth largest value in a single column.

To get the 1st, 2nd, 3rd, or nth largest value in a range (single column, or row), you can use the LARGE function.

For example:

**Find the First Largest Value**

You can use the following formula to get the first largest value in the range C2:C5:

=LARGE(C2:C5,1)

**Find the Second Largest Value**

To get the second largest value in the range C2:C5, you can use the following LARGE function:

=LARGE(C2:C5,2)

**Find the nth Largest Value**

you just need to modify the second argument (nth) of the LARGE function to a numeric value that you want. Refer to the below formula:

=LARGE(C2:C5,nth)

If you want to get the relative value of the same row of the nth largest value, you can use a combination with the LARGE function, the INDEX function and MATCH function. For example, to get the name value in the same relative row position of the second largest salary value in the range C2:C5, you can use the following excel formula:

=INDEX(B2:B5,MATCH(LARGE(C2:C5,2),C2:C5,0))

Let’s see how this formula works:

**=LARGE(C2:C5,2)**

As described above, This LARGE function returns the second largest value in the range C2:C5.

**=MATCH(LARGE(C2:C5,2),C2:C5,0)**

The MATCH function will perform an exact searching in the range C2:C5, then returns the position number of the second largest value in the range C2:C5. It returns 2.

**=INDEX(B2:B5,MATCH(LARGE(C2:C5,2),C2:C5,0))**

The INDEX function extract the value based on the position number that returned by the above MATCH function, so it returns one value in the range B2:B5 based on the returned position. It returns “jenny”.

- Get nth Match with One Criteria using INDEX/MATCH

if you want to find the 2th occurrence of the member “jenny” in the range B2:B10 and extracts its relative bonus value in the range D2:D10, you can used the following array formula:=INDEX(D2:D10, SMALL(IF(B2:B10=”jenny”, ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2))… - Lookup the Value with Multiple Criteria

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula.… - Lookup the Next Largest Value

If you want to get the next largest value in another column, you can use a combination of the INDEX function and the MATCH function to create an excel formula.. - Find the nth Smallest Value

You can use the SMALL function to get the 1st, 2nd, 3rd, or nth smallest value in an array or range. Also you can use the SMALL function within the INDEX function to extract the relative value of the same row…

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel LARGE function

The Excel LARGE function returns the largest numeric value from the numbers that you provided. Or returns the largest value in the array. The syntax of the LARGE function is as below:= LARGE (array,nth)…

This post explains that how to **get the nth smallest value** in a single column, or single row or an array list in excel. How to extract relative value in the same row based on the position of the nth smallest value in a single column.

You can use the SMALL function to get the 1st, 2nd, 3rd, or nth smallest value in an array or range. Also you can use the SMALL function within the INDEX function to extract the relative value of the same row. Let’s see the following formulas:

**Get the First Smallest Value in the Range C2:C5**

=SMALL(C2:C5,1)

This formula returns the smallest values in the range C2:C5.

**Get the Second Smallest Value in the Range C2:C5**

=SMALL(C2:C5,2)

The second argument of the SMALL function is set to 2, so it will extract the second smallest values in the range C2:C5.

**Get the Third Smallest Value in the Range C2:C5**

=SMALL(C2:C5,3)

To get the third smallest value in the range C2:C5, you can use the above formula.

**Get the Nth Smallest Value in the Range C2:C5**

So if you want to get the nth smallest value in one range, you just need to modify the second argument of the SMALL function to a numeric value that you need.

=SMALL(C2:C5, nth)

You can also use the SMALL function in combination with the INDEX function and MATCH function to extract the relative value in the same row position of the nth smallest in a range. For example, to get the name value in the same relative row position of the 2nd smallest salary value in the range C2:c5, you can write down the following excel formula:

=INDEX(B2:B5,MATCH(SMALL(C2:C5,2),C2:C5,0))

Let’s see how this formula works:

**=SMALL(C2:C5,2)**

This formula returns the second smallest value in the range C2:C5. It returns a numeric value.

**=MATCH(SMALL(C2:C5,2),C2:C5,0)**

The MATCH function returns the position number of the second smallest value in the range C2:C5. it returns 3.

**=INDEX(B2:B5,MATCH(SMALL(C2:C5,2),C2:C5,0))**

The INDEX function extract the value based on the position number that returned by the above MATCH function, so it returns one value in the range B2:B5 based on the returned position. it returns “jeffery”.

- Get nth Match with One Criteria using INDEX/MATCH

if you want to find the 2th occurrence of the member “jenny” in the range B2:B10 and extracts its relative bonus value in the range D2:D10, you can used the following array formula:=INDEX(D2:D10, SMALL(IF(B2:B10=”jenny”, ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2))… - Lookup the Value with Multiple Criteria

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula.… - Lookup the Next Largest Value

If you want to get the next largest value in another column, you can use a combination of the INDEX function and the MATCH function to create an excel formula… - Find the nth Largest Value

To get the 1st, 2nd, 3rd, or nth largest value in a range (single column, or row), you can use the LARGE function…

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel SMALL function

The Excel SMALL function returns the smallest numeric value from the numbers that you provided. Or returns the smallest value in the array.The syntax of the SMALL function is as below:=SMALL(array,nth) …

This post explains that how to **get the nth occurrence value with multiple criteria using INDEX and MATCH** in excel. How to find the first, second or nth match with multiple criteria in excel. How to return the nth match on a multiple criteria using INDEX and MATCH.

In the previous post, we talked that get the nth match value with only one criteria.

Also, we also talked that how to Lookup the Value with Multiple Criteria to find the first occurrence match in excel.

If you want to find the nth occurrence with multiple criteria, you can use a combination with the INDEX function, SMALL function, nested IF function and ROW function to create a complex excel formula like this:

=INDEX(Array,SMALL(IF(Range1=Criteria1,IF(Range2=Criteria2,IF(Range3=Criteria3,IF(Range4=Criteria4,IF(Range5=Criteria5,ROW(Array)-ROW(INDEX(Array,1))+1))))),nth))

For example, if you want to get the bonus value in the excel range D2:D10 that must meet two criteria, and the first one is that the member name is equal to the string “jenny” in the range A2:A10, and the second criteria is that the location is equal to “London” in the range B2:B10. So we can write down the following array formula:

=INDEX(D2:D10, SMALL(IF(A2:A10="jenny",IF(B2:B10="London", ROW(A2:A10)-ROW(INDEX(A2:A10,1,1))+1)),2))

**Note:** after entering this formula in the formula bar, you need to press **CTRL+SHIFT+Enter** key to convert it as array formula.

**Let’s see how this formula works:**

**=ROW(A2:A10)-ROW(INDEX(A2:A10,1,1))+1**

This formula returns the relative position of the range A2:A10, it returns an array result like this:

{1;2;3;4;5;6;7;8;9}

For More detailed description, you can continue to read this post: How to Find the Relative Position in a Range or Table

**=IF(A2:A10=”jenny”,IF(B2:B10=”London”, ROW(A2:A10)-ROW(INDEX(A2:A10,1,1))+1))**

This function is a nested IF function, it will check each item of range A2:A10 firstly and if it is equal to the string “jenny”, if TRUE, then continue to check each item of range B2:B10 if it is equal to the string “London”, if TRUE, return the relative position of row. Otherwise, return FALSE. So this formula returns an array result like this:

{FALSE;2;FALSE;FALSE;5;FALSE;FALSE;FALSE;FALSE}

**=SMALL(IF(A2:A10=”jenny”,IF(B2:B10=”London”, ROW(A2:A10)-ROW(INDEX(A2:A10,1,1))+1)),2)**

The SMALL function returns the second smallest value from the array result returned by the above nested IF function. It returns 5.

So far, we got the position of the second occurrence of bonus value that meet two criteria as requested above.

**=INDEX(D2:D10, SMALL(IF(A2:A10=”jenny”,IF(B2:B10=”London”, ROW(A2:A10)-ROW(INDEX(A2:A10,1,1))+1)),2))**

The INDEX function extract the values at a position that returned by the SMALL function. So it is the bonus value of the second occurrence in the range D2:D10. It is 165.

- Get nth Match with One Criteria using INDEX/MATCH

if you want to find the 2th occurrence of the member “jenny” in the range B2:B10 and extracts its relative bonus value in the range D2:D10, you can used the following array formula:=INDEX(D2:D10, SMALL(IF(B2:B10=”jenny”, ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2))… - Reverse a List or Range

If you want to reverse a list or range, you can use a combination of the INDEX function, the COUNTA function, the ROW function or ROWS function to create a new formula. you can use the following formula:=INDEX($A$2:$A$5,COUNTA($A$2:$A$5)-ROWS($C$2:C2)+1)… - Transpose Values Based on the Multiple Lookup Criteria

If you want to lookup the value with multiple criteria, and then transpose the last results, you can use the INDEX function with the MATCH function to create a new formula.… - Lookup the Value with Multiple Criteria

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula.… - Lookup the Next Largest Value

If you want to get the next largest value in another column, you can use a combination of the INDEX function and the MATCH function to create an excel formula..

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel SMALL function

The Excel SMALL function returns the smallest numeric value from the numbers that you provided. Or returns the smallest value in the array.The syntax of the SMALL function is as below:=SMALL(array,nth) … - Excel ROW function

The Excel ROW function returns the row number of a cell reference.The ROW function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the ROW function is as below:= ROW ([reference])…. - Excel nested IF function

The nested IF function is formed by multiple if statements within one Excel if function. This excel nested if statement makes it possible for a single formula to take multiple actions.The syntax of Nested IF function is as below:=IF(Condition_1,Value_if_True_1,IF(Condition_2,Value_if_True_2,Value_if_False_2))…. - Excel IF function

The Excel IF function perform a logical test to return one value if the condition is TRUE and return another value if the condition is FALSE. The IF function is a build-in function in Microsoft Excel and it is categorized as a Logical Function.The syntax of the IF function is as below:= IF (condition, [true_value], [false_value])….

This post will guide you how to **get nth match based on one criteria with INDEX and MATCH** in Excel. In the previous post, we used one excel formula to get the position of the nth occurrence of a value based on one criteria, at this moment, we can also use it in the new formula to extract the nth match value using INDEX function. Like the below array formula:

{=INDEX(array,SMALL(IF(vals=val,ROW(vals)-ROW(INDEX(vals,1,1))+1),nth))}

For example, if you want to find the 2th occurrence of the member “jenny” in the range B2:B10 and extracts its relative bonus value in the range D2:D10, you can used the following array formula:

=INDEX(D2:D10, SMALL(IF(B2:B10="jenny", ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2))

**Let’s see how this formula works**

**= SMALL(IF(B2:B10=”jenny”, ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2)**

The detailed description for this formula, please continue reading: get the position of nth occurrence of a value in column

The SMALL function returns the position of the second occurrence of the string text “jenny” in the range B2:B10. If you want to get the third or nth match value in a range, just need to modify the nth in the formula as your need.

**=INDEX(D2:D10, SMALL(IF(B2:B10=”jenny”, ROW(B2:B10)-ROW(INDEX(B2:B10,1,1))+1),2))**

The First INDEX function returns bonus value of the second match based on the position number returned by the SMALL function. So it returns $165.

- Find nth Occurrence with Multiple Criteria Using INDEX/MATCH

If you want to find the nth occurrence with multiple criteria, you can use a combination with the INDEX function, SMALL function, nested IF function and ROW function to create a complex excel formula like this:**=**INDEX(Array,SMALL(IF(Range1… - Reverse a List or Range

If you want to reverse a list or range, you can use a combination of the INDEX function, the COUNTA function, the ROW function or ROWS function to create a new formula. you can use the following formula:=INDEX($A$2:$A$5,COUNTA($A$2:$A$5)-ROWS($C$2:C2)+1)… - Transpose Values Based on the Multiple Lookup Criteria

If you want to lookup the value with multiple criteria, and then transpose the last results, you can use the INDEX function with the MATCH function to create a new formula.… - Lookup the Value with Multiple Criteria

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula.… - Lookup the Next Largest Value

If you want to get the next largest value in another column, you can use a combination of the INDEX function and the MATCH function to create an excel formula..

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel SMALL function

The Excel SMALL function returns the smallest numeric value from the numbers that you provided. Or returns the smallest value in the array.The syntax of the SMALL function is as below:=SMALL(array,nth) … - Excel ROW function

The Excel ROW function returns the row number of a cell reference.The ROW function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the ROW function is as below:= ROW ([reference])…. - Excel IF function

The Excel IF function perform a logical test to return one value if the condition is TRUE and return another value if the condition is FALSE. The IF function is a build-in function in Microsoft Excel and it is categorized as a Logical Function.The syntax of the IF function is as below:= IF (condition, [true_value], [false_value])….

This post will guide you how to use **Excel SUMPRODUCT function** with syntax and examples in Microsoft excel.

The Excel SUMPRODUCT function multiplies corresponding components in the given one or more arrays or ranges, and returns the sum of those products. And it returns a numeric value.

The SUMPRODUCT function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The SUMPRODUCT function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

The syntax of the SUMPRODUCT function is as below:

= SUMPRODUCT (array1,[array2],…)

Where the SUMPRODUCT function arguments are:

**array1**-This is a required argument. The first array or range that you want to multiply and then add.**[array2],…**– This is an optional argument. The second array or range that you want to multiply and then add.

**Note: **

- The array arguments must have the same dimensions, or it will return the #VALUE! Error.
- The SUMPRODUCT treats non-numeric items in the arrays as zeros.

The below examples will show you how to use Excel SUMPRODUCT Function to return the sum of products.

**#1** To get the total amount of all products in the range B1:B5, just using the following excel formula:

=SUMPRODUCT(C2:C5,D2:D5)

**2#** The arrays or ranges must have the same dimensions, otherwise returns the #VALUE error. See the below picture:

**3#** non-numeric items in the arrays or ranges are treated as zeros.

This post explains that how to lookup the value in a table or a range based on the multiple criteria in excel. This post will guide you how to **search for a specified value with multiple criteria** using INDEX and Match functions. And how to use Lookup function **to lookup the value with multiple criteria**. How to use the SUMPRODUCT function to lookup the value with multiple criteria in excel.

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula.

For example, if you want to search for the bonus values that matches the two criteria, the member name is equal to “jenny” and the month value is equal to “Sep”. You can write down the following array formula using INDEX function and MATCH function:

=INDEX(D2:D10,MATCH(1,(B2:B10="jenny")*(C2:C10="Sep"),0))

Let’s see how the above formula works:

**=(B2:B10=”jenny”)**

The above formula will check each item in the range B2:B10 if it is equal to the string “jenny”, if so, returns TRUE. If not, returns FALSE. The returned result is an array like this:

{FALSE;TRUE;FALSE;FALSE;TRUE;FALSE;FALSE;TRUE;FALSE}

The position of the “TRUE” value in the above array result is actually the position of the lookup value in the range B2:B10.

**=(C2:C10=”Sep”)**

The above formula returns an array result like this:

{TRUE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}

It will check each item in the range C2:C10 if it is equal to the string “Sep”. If so, it returns TRUE, or returns FALSE. From the position of the TRUE value in the array result, you can get the position of the lookup value that matched the criteria in the range C2:C10.

**=(B2:B10=”jenny”)*(C2:C10=”Sep”)**

This formula will convert the TRUE FALSE values to 1s and 0s, and then perform multiplication operation to return the below array result. The position of item “1s” in the array is the position of lookup values matching multiple criteria in the range D2:D10. So you can use the MATCH function to search for 1 value to get the position result.

{0;1;0;0;0;0;0;0;0}

**{=MATCH(1,(B2:B10=”jenny”)*(C2:C10=”Sep”),0)}**

The MATCH function returns the position number of the lookup bonus value that matching two criteria. It returns 2.

**=INDEX(D2:D10,MATCH(1,(B2:B10=”jenny”)*(C2:C10=”Sep”),0))**

The INDEX function returns the bonus value at a position returned by the MATCH function. It returns $150.

You can also use the LOOKUP function to search for the value with multiple criteria, just refer to the following formula to lookup bonus values that matches two criteria (member name =”jenny” and Month value =”Sep”):

=LOOKUP(2,1/(B2:B10="jenny")/(C2:C10="Sep"),(D2:D10))

Let’s see how this formula works:

**=(B2:B10=”jenny”)/(C2:C10=”Sep”)**

This formula perform a division operation to get an array result like this:

{0;1;0;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!}

**=1/(B2:B10=”jenny”)/(C2:C10=”Sep”)**

This formula divides 1 by the above array result to get the following new array like this:

{#DIV/0!;1;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!;#DIV/0!}

The position of item 1 in the array is the position of lookup bonus value matching criteria.

** **

**=LOOKUP(2,1/(B2:B10=”jenny”)/(C2:C10=”Sep”),(D2:D10))**

The LOOKUP function looks up 2 in the above array, matches the nearest smaller value (1), and returns the bonus value from the range D2:D10 that is in the same row.

There is another way to search for the value with multiple criteria in excel, using SUMPRODUCT function. You can try to use the following SUMPRODUCT to achieve the same result.

=SUMPRODUCT((B2:B10="jenny")*(C2:C10="Sep")*(D2:D10))

Let’s see how this formula works:

**=(B2:B10=”jenny”)*(C2:C10=”Sep”)*(D2:D10)**

This formula multiples two array results and values in range D2:D10 together and returns another array result like this:

{0;150;0;0;0;0;0;0;0}

**=SUMPRODUCT((B2:B10=”jenny”)*(C2:C10=”Sep”)*(D2:D10))**

The SUMPRODUCT function multiples the items in the arrays and returns sum of the results. So it returns 150.

- Reverse a List or Range

If you want to reverse a list or range, you can use a combination of the INDEX function, the COUNTA function, the ROW function or ROWS function to create a new formula. you can use the following formula:=INDEX($A$2:$A$5,COUNTA($A$2:$A$5)-ROWS($C$2:C2)+1)… - Transpose Values Based on the Multiple Lookup Criteria

If you want to lookup the value with multiple criteria, and then transpose the last results, you can use the INDEX function with the MATCH function to create a new formula.…

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel LOOKUP function

The Excel LOOKUP function will search a value in a vector or array.The LOOKUP function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the LOOKUP function is as below:= LOOKUP (lookup_value, lookup_vector, [result_vector])…. - Excel SUMPRODUCT function

The Excel SUMPRODUCT function multiplies corresponding components in the given one or more arrays or ranges, and returns the sum of those products. And it returns a numeric value.The syntax of the SUMPRODUCT function is as below:= SUMPRODUCT (array1,[array2],…)….

This post explains that how to** transpose values from columns to rows based on the multiple lookup criteria** in excel.

In the previous, we talked that how to transpose values from columns to rows using Paste Special Transpose, it’s just rearrange all data in a range and do not apply for any criteria.

If you want to lookup the value with multiple criteria, and then transpose the last results, you can use the INDEX function with the MATCH function to create a new formula.

For example, to transpose the values in both column B and Column C based on the multiple criteria: member’s name is equal to the range B2:B10, and month’s value is equal to the range C2:C10, then extract the bonus value from the range D2:D10. you can use the following array formula:

=INDEX($D$2:$D$10,MATCH(1,($B$2:$B$10=$F4)*($C$2:$C$10=G$3),0))

Let’s see how the above formula works:

=**($B$2:$B$10=$F4)**

The above formula will check if each value in the range B2:B10 is equal to the value in Cell F4, if so, return TRUE, otherwise, returns FALSE. So the above formula returns an array result like this:

{TRUE;FALSE;FALSE;TRUE;FALSE;FALSE;TRUE;FALSE;FALSE}

=**($C$2:$C$10=G$3)**

The above formula will check if each month value in the range C2:C10 is equal to the value in Cell G3, if so, return TRUE, otherwise, returns FALSE. So the above formula returns an array result like this:

{TRUE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}

=**($B$2:$B$10=$F4)*($C$2:$C$10=G$3)**

the above formula returns an array result like this:

{1;0;0;0;0;0;0;0;0}

**= MATCH(1,($B$2:$B$10=$F4)*($C$2:$C$10=G$3),0)**

The MATCH function used the above array result(containing one and zero) to find the position of item “1”, it is actually the position of the bonus value that matched the multiple criteria.

**=INDEX($D$2:$D$10,MATCH(1,($B$2:$B$10=$F4)*($C$2:$C$10=G$3),0))**

The INDEX function extracts the value based on the position result returned by the above MATCH function. So it returns “$100”in Cell G4.

You can drag the Fill Handler in the Cell G4 to other cells to fill up the entire range G4:I6 as you need.

- Reverse a List or Range

If you want to reverse a list or range, you can use a combination of the INDEX function, the COUNTA function, the ROW function or ROWS function to create a new formula. you can use the following formula:=INDEX($A$2:$A$5,COUNTA($A$2:$A$5)-ROWS($C$2:C2)+1)… - Lookup the Value with Multiple Criteria

If you want to lookup the value with multiple criteria in a range, you can use a combination with the INDEX function and MATCH function to create an array formula…

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])….

]]>

This post explains that how to** transpose data from columns to rows, or from rows to columns** in excel. if you want to rotate the data in columns of a worksheet to rearrange it in rows, you can use the “Paste Special Transpose” option to switch rows to columns or vice verse. you can also use the TRANSPOSE function to achieve the same result.

To transpose the data in the range B2:B5 from columns to rows, refer to the following steps:

**1#** Select the range B2:B5 that you want to rearrange, then press **CTRL+C** to copy the selected Range.

**2#** Select Cell D2, then Right-click on the selected range, then click “**Paste Special…**.”, the “Paste Special” window will appear.

**3#** checked “**Transpose**“. click OK.

**4#** let’s see the last result.

If you want to transpose the range B2:B5 to D2:G2, just enter into the following array formula in Cell C1:

=TRANSPOSE(B2:B5)

You need to select the range D2:G2, then enter the above formula in the formula bar. Then click **“Ctrl”+”Shift”+Enter** key to convert its as an array formula.

]]>

This post explains that how to **lookup the next largest value** in another column in excel. how to find the next largest value in a range with the excel formula.

If you want to get the next largest value in another column, you can use a combination of the INDEX function and the MATCH function to create an excel formula.

For example, if we used the VLOOKUP function to lookup the value 200, then it returns “103”, so it returns the value that is less than or equal to the lookup value. but if you want to return the next largest value in the range A2:A5, you can use the following formula:

=INDEX(A2:A5,MATCH(200,A2:A5)+1)

And if you want to find the next largest value in another column B2:B5, you just need to change the first argument of the INDEX function, use the range B2:B5 instead of A2:A5, the formula is as follwos:

=INDEX(B2:B5,MATCH(200,A2:A5)+1)

**Let’s see how the above formula works:**

**=MATCH(200,A2:A5)+1**

The MATCH function return the position of the lookup value 200 in the range A2:A5, if the MATCH function is not find the exact match, then it would return an approximate matched value(it should be less than or equalt to the lookup value) by default, so it returns 1.

To get the position of the next largest value, the position number returned by the match function need to add 1 again. so now we got the position of the next largest value in the range A2:A5. It returns 2.

**=INDEX(A2:A5,MATCH(200,A2:A5)+1)**

**=INDEX(B2:B5,MATCH(200,A2:A5)+1)**

The INDEX function returns the value based on the given position that returned by the above MATCH function.

so if you used the Range A2:A5, then the above INDEX function returns the next largest value in the range A2:A5.

And if you used the Range B2:B5, then it returns the next largest value in the range B2:B5.

You can also use the following array formula to achieve the same result.

=INDEX(B2:B5,MATCH(TRUE,A2:A5>200,0))

Note: when you enter the above array formula into a single cell, you should press **Ctrl** + **Shift** +**Enter** key.

- Find the Relative Position in a Range or Table

If you want to know the relative row position for all rows in an Excel Range (B3:D6), you can use a excel Array formula as follows:=ROW(B3:D6)- ROW(B3) + 1. You can also use another excel array formula to get the same result as follows:=ROW(B3:D6)-ROW(INDEX(B3:D6,1,1))+1… - Reverse a List or Range

If you want to reverse a list or range, you can use a combination of the INDEX function, the COUNTA function, the ROW function or ROWS function to create a new formula. you can use the following formula:=INDEX($A$2:$A$5,COUNTA($A$2:$A$5)-ROWS($C$2:C2)+1)…

- Excel INDEX function

The Excel INDEX function returns a value from a table based on the index (row number and column number)The INDEX function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.The syntax of the INDEX function is as below:= INDEX (array, row_num,[column_num])… - Excel MATCH function

The Excel MATCH function search a value in an array and returns the position of that item.The syntax of the MATCH function is as below:= MATCH (lookup_value, lookup_array, [match_type])…. - Excel VLOOKUP function

The Excel VLOOKUP function lookup a value in the first column of the table and return the value in the same row based on index_num position.The syntax of the VLOOKUP function is as below:= VLOOKUP (lookup_value, table_array, column_index_num,[range_lookup])….