简体   繁体   中英

VLookup match insert in Excel

I am new to this website; if I make any mistakes, please accept my apologies.

I am in need of some help regarding a search and replace method in Excel.

My goal is to select a range of random values from a column (eg column D) and see if there is a corresponding match for that value in the unique column (eg column A). If this value is in column A, I would like to insert that value in the same row as the corresponding value column A but into another column (eg column E).

I have tired various different functions such as IF , VLOOKUP , and MATCH but have had no luck so far.

Can someone please show me how can this be done or if its even possible to do?

Thank you!

In cell E1, put this formula:

=IFERROR(VLOOKUP(A1, D:D, 1, 0), "")

This looks for A1 in column D and if there is a match, put that matched value in the cell E1.

EDIT: I put the IFERROR() so that blanks are returned when there is no 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