简体   繁体   中英

How to populate or update column value in an excel sheet based on data values in another reference column

I have two excel sheets: One have basic set of data as shown below. It have only three rows of data.

在此处输入图像描述

Now, my second sheet have 7 rows of data as shown below, but first column is empty.

在此处输入图像描述

Now, I want to update the first column of my second sheet using reference data of first sheet as shown below. I searched and used concatenation function but it is not working.

To make it simple, we can assume that both of the data sets are available on single sheet but under different columns. Wondering how to update the first column value? 在此处输入图像描述

Edit: Complete set of data with column name: 在此处输入图像描述

If the first sheet is Sheet1 and your second sheet is Sheet2 , and all of our data is in columns A and B on the two sheets, then you can use a formula like this in Sheet2 (adjust B1 to match the row you enter the formula into):

=VLOOKUP(B1,Sheet1!A:B,2,FALSE)
          | \--------/ |   \------- find an exact match
          |      |     \----------- return the value from the 2nd column of the array
          |      \----------------- find the value in the first column of this array
          \------------------------ value to find

This takes the value aajain in cell B1 on Sheet2 and find the value in the first column ( A ) on Sheet1 , and returns the second column ( 2 ) value. Using False in the formula tells it to use an exact match instead of an approximate match.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM