• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VB Script to lookup data in one sheet and fill in another sheet

Ram kumar

New Member
Hello Friends,

I have an excel workbook with two sheets. The first sheet is Sheet A and the second sheet is Sheet B. I have some data in Sheet B in three columns and some data in Sheet A. Can I get a code to fill the data in sheet A by checking the data in Sheet B.

Please check the excel file for details.

Thank you
 

Attachments

  • Data lookup.xlsx
    11.8 KB · Views: 8
FWIW, a formula solution will also work. In cell C6:
=LOOKUP(2,SEARCH($B6&C$1&$A6,'Sheet B'!$A$1:$A$64&'Sheet B'!$B$1:$B$64&'Sheet B'!$C$1:$C$64,1),'Sheet B'!$D$1:$D$64)
copy in all yellow cells afterwards.
 
FWIW, a formula solution will also work. In cell C6:
=LOOKUP(2,SEARCH($B6&C$1&$A6,'Sheet B'!$A$1:$A$64&'Sheet B'!$B$1:$B$64&'Sheet B'!$C$1:$C$64,1),'Sheet B'!$D$1:$D$64)
copy in all yellow cells afterwards.
Hello Shrivallabha,

Thank you for the formula, I have a small question. what does "2" indicate in the formula in =lookup(2

Regards
Ram kumar
 
Back
Top