Formula to deliver answer that is in another sheet, to the left of a matched cell -


i working on formula delivers text cell in sheet, left of matched cell. far have got.

=lookup(a2,sheet1!$a$1:$a$46729,sheet1!$b$2:$b$46729)  

in sheet 1 there selection of product data. there product numbers in column , there needs correct barcode placed in each cell in column b. in sheet 2 there product codes in column , barcodes in column b. there more rows of data in sheet 2.

what needed formula place in sheet1!b2 looks sheet1!a2 in sheet2!a2:a50000. if a2 matched @ e.g. sheet2!a90, result in sheet1!b2 should value in sheet2!b90. specific issue having getting sheet2!b90 in sheet1!b2.

you can use index/match:

=index(sheet2!$b$2:$b$46729,match(a2,sheet2!$a$2:$a$46729,0)) 

or vlookup:

=vlookup(a2,sheet2!$a$2:$b$46729,2,false) 

the last parameters of match , vlookup functions respectively important forces search exact value , not assume sorted list. vlookup no longer work if reversed columns , b on sheet2 because lookup column has first column in lookup range.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -