To retrieve a price from a list that matches both category and item criteria in Excel, we will use a combination of INDEX & MATCH functions to get the output.
INDEX: Returns a value or reference of the cell at the intersection of a particular row and column, in a given range.
array:Array is a range of cells or table.
row_num:The row number in the array from which the value is returned.
column_num:It is optional. It is the column number in the array that is used to return the value.
MATCH function searches for a specified item in a selected range of cells, and then returns the relative position of that item in the range.
lookup_value: The value you want to look for
lookup_array: The table of data contains information from which you want to return the output.
match_type: 1,0 and -1 are three options.
1(Default): It will find the largest value in the range. List must be sorted in ascending order.
0: It will find an exact match
-1: It will find the smallest value in the range. List must be sorted in descending order.
Let us take an example:
We have electronic items in column A, category in column B & their respective price in column C.Column E & F contain matching item & category.We need a formula to retrieve the price from column C by matching both the criteria from column E & F.
This is the way we can retrieve a price from a list that matches both category and item criteria in Microsoft Excel.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.