How to Do Data Mapping in Excel (5 Handy Ways)

Data Mapping is one of the first and essential steps for data management. In Microsoft Excel, you can easily do data mapping which reduces a lot of time and hassle in data management. This article demonstrates how to do data mapping in Excel in 5 handy ways.

We have used Microsoft Excel 365 version for this article, you can use any other version according to your convenience.


What Is Data Mapping?

Data mapping is the process of linking the data of one database to another. It is a very necessary step in data management. If you perform data mapping, after changing the data in one database, the data in another database will also change. This reduces a lot of time and hassle in data management.


1. Inserting VLOOKUP Function to Do Data Mapping in Excel

In this method, we will see how to do data mapping in Excel using the VLOOKUP function. Now, let’s assume you have a dataset with the Sales Quantity for three different models of laptops over several weeks. At this point, you want to extract the data for MacBook Air M1 in Week 3. Follow the steps below to do so.

Utilizing VLOOKUP Function to Do Data Mapping

Steps:

  • First, select the cell where you want your data. In this case, we select cell H6.
  • Then, insert the following formula in the cell.
=VLOOKUP(G6,B4:E12,2,FALSE)

Here, cell G6 is the cell indicating week no. for which we want our data. Also, range B4:E12 is the weekly sales dataset.

Utilizing VLOOKUP Function to Do Data Mapping

  • Finally, you will have your output as shown in the following screenshot.

Utilizing VLOOKUP Function to Do Data Mapping

Note: There are 3 other ways to do data mapping using the VLOOKUP function in Excel.


2. Using INDEX-MATCH Functions for Data Mapping

Here, we will see how to do data mapping in Excel using the INDEX-MATCH functions. Now, let’s assume you have a dataset with the Sales Quantity for three different models of laptops over several weeks. At this point, you want to extract the data for MacBook Air M1 in Week 3. Follow the steps below to do so.

Using INDEX-MATCH Functions

Steps:

  • First, select the cell where you want your data. In this case, we select cell H6.
  • Then, insert the following formula in the cell.
=INDEX(B4:E12,MATCH(G6,B4:B12),2)

In this case, cell G6 is the cell indicating week no. for which we want our data. Also, range B4:E12 is the weekly sales dataset.

Using INDEX-MATCH Functions

  • Finally, you will have an output as shown in the below screenshot.

Using INDEX-MATCH Functions


3. Linking Cells to Do Data Mapping in Excel

Now, we will link cells to do data mapping from another sheet. Suppose you have a dataset with the Sales Quantity for three different models of laptops over several weeks.

Linking Cells to Do Data Mapping in Excel

At this point, you are creating a datasheet and you want to link the data for the sales quantity of Macbook Air M1 with the other sheet. Now, to do data mapping from another sheet follow the steps below.

Linking Cells to Do Data Mapping in Excel

Steps:

  • At the very beginning, select the first cell of the Sales Quantity column in the new worksheet. In this case, it is cell D6.
  • Next, insert the following formula into the cell.
='Linking Cells 1'!C6

Here, ‘Linking Cells 1’ is the name of the other worksheet from which we are mapping the data.

  • Then, drag the Fill Handle for the rest of the cells in the column.

Linking Cells to Do Data Mapping in Excel

  • Eventually, you will have an output as shown in the below screenshot.

Linking Cells to Do Data Mapping in Excel


4. Applying HLOOKUP Function for Data Mapping

In this method, we will see how to do data mapping in Excel using the HLOOKUP function. Now, let’s assume you have a dataset with the Sales Quantity for three different models of laptops over several weeks. At this point, you want to extract the data for MacBook Air M1 in Week 3. Follow the steps below to do so.

Applying HLOOKUP Function 

Steps:

  • First, select the cell where you want your data. In this case, we select cell H6.
  • Then, insert the following formula in the cell.
=HLOOKUP(C5,C5:E12,4,FALSE)

Here, cell C5 is the cell indicating the laptop model we want our data for.

Applying HLOOKUP Function 

  • Finally, you will have your output as shown in the following screenshot.

Applying HLOOKUP Function 


5. Using Advanced Filter to Do Data Mapping in Excel

Now, suppose you want to find out data for an entire row from a table. You can easily do this in Excel by using the Advanced Filter feature in Excel. At this point, to do so, follow the below steps.

Using Advanced Filter to Do Data Mapping in Excel

Steps:

  • At the very beginning, insert Week and Week 3 as shown in the below screenshot. In this case, we insert Week and Week 3 in cells G4 and G5 respectively.

Using Advanced Filter to Do Data Mapping in Excel

  • Next, go to the Data tab.
  • After that, select Advanced from Sort & Filter.

Using Advanced Filter to Do Data Mapping in Excel

  • At this point, the Advanced Filter window will pop up.
  • Then, from that window select Copy to another location.
  • Next, in List Range insert the range you are extracting the data from. In this case, range $B$4:$E:$11 is the inserted range.
  • Now, insert range $G$4:$G$5 in the Criteria range.
  • After that, insert $G$7 in Copy to. Here, this is the cell where we will put the extracted data.
  • Consequently, click on OK.

Using Advanced Filter to Do Data Mapping in Excel

  • Eventually, you will have an output as shown in the below screenshot.

Using Advanced Filter to Do Data Mapping in Excel


Things to Remember

  • Before performing extensive data mapping operations or making significant changes to your datasets, create backups of your data.
  • Maintain documentation or a record of your data mapping process.
  • Always test your data mappings with sample data to ensure the accuracy of the results.

Frequently Asked Questions

1. What are the advantages of using the INDEX-MATCH function for data mapping?

Ans: The INDEX-MATCH function is a powerful alternative to the VLOOKUP function for data mapping. It offers several advantages, including the ability to perform left-to-right lookups, handle unsorted data, and handle multiple criteria matching. It also provides more flexibility and is generally faster than the VLOOKUP function for large datasets.

2. How does the HLOOKUP function differ from VLOOKUP when it comes to data mapping?

Ans: While the VLOOKUP function is used to perform vertical lookups, the HLOOKUP function is specifically designed for horizontal lookups. It searches for a value in the first row of a dataset and retrieves a corresponding value from a different row. While both functions can be used for data mapping, their usage depends on the orientation of the datasets and the desired lookup direction.

3. How can linking cells help in maintaining dynamic data mapping in Excel?

Ans: Linking cells in Excel ensures that the mapped data stays connected and automatically updates when changes are made to the source or linked cells.


Practice Section

For doing practice by yourself we have provided a Practice section like below on the right side of every worksheet.

Practice Section


Download Practice Workbook

You can download the practice workbook from the link below.


Conclusion

In this article, we have seen the 5 handy ways to do data mapping in Excel. Last but not least, I hope you found what you were looking for in this article. If you have any queries, please drop a comment below.


Data Mapping in Excel: Knowledge Hub

<< Go Back To Importing Data in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sowmik Chowdhury
Sowmik Chowdhury

Sowmik Chowdhuri, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, serves as a crucial Excel & VBA Content Developer at ExcelDemy. His profound passion for research and innovation seamlessly aligns with his unwavering dedication to Excel. In this role, Sowmik not only skillfully addresses challenging issues but also demonstrates enthusiasm and expertise in gracefully navigating intricate situations, highlighting his steadfast commitment to consistently deliver content of exceptional quality and value. Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo