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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -