Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel Find Data and Replace Data in another Cell (if data in Column C is Found in A, Replace B Data with D Data)

I have an excel worksheet with 4 columns, 2 columns of old data and 2 columns of new data

(A) PartCode (B) Old Description (C) Part Code (D) New Description
ABC Old abc description DEF New def description
DEF Old def description GHI New ghi description
GHI Old ghi description ABC New abc description

How can i replace the old description in column B with the new description from column D?

The part codes in A and B are in a random order so cannot be sorted and do not match

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Basically search column A using the part code from C, if found then replace B with D for the appropriate rows

This is a one off so if theres another way or possible to do it online i’m open to suggestions

Thanks

Tried find and replace

>Solution :

You can use VLOOKUP:

=VLOOKUP(A2:A4,C2:D4,2,0)

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading