Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two Excel 2007 sheets A,B with the same columns.

B contains less rows, but has a column with updated data (i.e. data in this column is newer than in the same column in A). I want to take every row in B, find the corresponding row in A (through a unique key, f.e. column C1) and update the value of the column with the updated version from B.

Before

A           B   
C1 C2 C3    C1 C2 C3
1  2  3     1  2  99
2  6  7

After

A           B   
C1 C2 C3    C1 C2 C3
1  2  99    1  2  99
2  6  7

How could I achieve this?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You could use VLOOKUP to initially populate the data, then copy values onto a new sheet to remove the reference.

share|improve this answer
    
Thanks, it worked very well. In German versions of Excel, the function is called SVERWEIS. –  p.vitzliputzli Apr 23 '12 at 20:21

you can use the Vlookup or the If functions

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.