简体   繁体   中英

Excel - Copying content from a cell to another ( with condition )

i have a little issue with excel doing this let's say i have 4 cells A,B,C,DA and C are just identifiers ( they have same text ) but not ordered i want to perform a function that copy cell D content to B if they had the same identifier ( A and C ) example :

A B C D 
something AsomethingA something CsomethingC

result :

A B C D
something CsomethingC something CsomethingC

i hope i didn't make it compliacted thank you guys in advance!

I found out how to do it, i used Vlookup function ,here is it :

=IFERROR(VLOOKUP(A1;$C$1:$D$2000;2;FALSE);"NO MATCH FOUND")

In my case i had 2000 cells, you can edit it however you want ,have a nice day!

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