简体   繁体   中英

Write the matching values in a cell

I have two excel sheets.

在此处输入图片说明

The first sheet matches the dates without price, and the second sheet matches the dates with price. I want to compare the two dates and if they are equal I want to put the right price into the B colume, so that it looks like that:

在此处输入图片说明

I want to implement this with a excel formula. However, I have no idea where to start .

I appreciate your answer!!!

PS.: My excel version is 2010

You need to use the vlookup() formula in the cells in column B:

=vlookup(A2,E1:F4,2;0)

Where the first value (A2) is the value you want to look up.

The second value (E1:F4) is the table where you want to look your value up.

The third value (2) is the column number of your table where you want to look the value up.

Remember, the fourth value is always 0 (or false).

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