How to fill cells from sheet A with values from sheet B when ID matches (in Excel)? -


consider following 2 sheets. sheet aaa has list of companies emptry column roa. sheet bbb has roa value of these companies.

sheet aaa

       b 1  id   roa 2   1 3   2 4   3 5   4 

sheet bbb

       b 1  id   roa 2   1   60.40 3   3   10.10 4   4    9.00 

looking @ id in both sheets, need formula fill in column aaa.b, resulting in

       b 1  id   roa 2   1   60.40 3   2 4   3   10.10 5   4    9.00 

what formula need in cell aaa.b2 (and down) done? believe vlookup function appropriate here, unsure how use in case?

use lookup function match , isna:

=if(isna(match(a1,sheet2!$a$1:$a$3,0)),"",lookup(a1,sheet2!$a$1:$a$3,sheet2!$b$1:$b$3)) 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -