APPLYING INDEX AND MATCH FUNCTIONS IN MICROSOFT EXCEL
Mary Bajisma Ashiru
Founder @Bajismalytics @DATA || Data Analyst || Data Analyst Coach || Data Analysis Consultant || Pioneer of Food Analysis
In my last two articles, I wrote about how to use horizontal and vertical lookup functions in Excel. In this article, I’ll be writing about how to use the index and match functions in Microsoft Excel.
# Let us look at how to use index and match functions. The dataset I will be using is a dummy dataset I created by myself (picture will be shown below)
# The index function takes three arguments which are: the lookup array, the lookup row number and the lookup column index number which is optional. In a case where the array used is the array of the total data, the lookup column index number has to be specified. Whereas, if the array used is the array of just the lookup column, there will be no need to input the lookup column index number.
# Let’s assume we want to look for the score of Mary Bajisma from the dataset, below is the formula to write using index and match:
Picture depicting using the Match Function
# Let me split the formulas for detailed explanation;
Picture depicting using the index function (using lookup column array) and match function with splitting
Picture depicting using the index function (using lookup column array) and match function without splitting
# If we are to use the second formula, by splitting it, we have: =INDEX(A2:D7, Match function result, 3) AND =MATCH(G5, A2:A7, 0)
Picture depicting using the index function (using entire data array) and match function with splitting
领英推荐
Picture depicting using the index function (using entire data array) and match function without splitting
# Another way to also do this is to first convert the data to a table and name it (I named mine as Data). Pictures are shown below.
Our first formula will now be written as: =INDEX(Data[Score], MATCH(G5, Data[First Name], 0)) and
Our second formula will now be written as: =INDEX(Data, MATCH(G5, Data[First Name], 0), 3)
Picture depicting using the index function (using entire data array) and match function from a table
Picture depicting using the index function (using lookup column array) and match function from a table
There are some few important things I want you to note below:
P.S: In my next article, we will learn how to perform case-sensitive lookup with index and match.
N.B: The caption to each image posted is written underneath the image.
If while learning, you feel the need to ask questions for clarity, you can send me a mail @[email protected] or whatsapp 09021833246.
Certified Parent Coach
2 年Thanks for sharing
Business Intelligence Analyst | Data modeling | Data Analyst | Power Bi expert | SSMS | IT Support | Bilingual
2 年Weldone, I love your consistency ??
Analytics Engineer | Credit Risk Analyst | Experienced with Python, SQL, Databricks, dbt
2 年Finally..... Thanks for sharing