Macro that will allow tab 1 's information to be copy to tab 2

HappyPerson Posts 2 Registration date Thursday March 31, 2016 Status Member Last seen April 25, 2016 - Apr 24, 2016 at 11:42 PM
 HappyPerson - May 28, 2016 at 10:00 PM
Please help.
My Excel Workbook has two tabs. Tab 1 contains all project information such as project number, customer name, project name, contract amount and....... Tab 2 is to keep track of change order. I don't like to re-type the project number, project name, customer name and contract amount to tab 2 when I enter a change order number for a contract that is already in tab 1.

Is any way macro that will allow tab 1 's information to be copy to tab 2 when I enter the contract number to tab 2?

Thank you so much.

1 response

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Apr 25, 2016 at 11:58 AM
Hi HappyPerson,

Have you tried VLOOKUP?

When Tab 1 looks like:

And you make a change to project number 2, then Tab 2 will look like:

Then formula in B2 is:
=VLOOKUP($A$2,'Tab 1'!$A$2:$D$5,2,0)
in C2:
=VLOOKUP($A$2,'Tab 1'!$A$2:$D$5,3,0)
and in D2:
=VLOOKUP($A$2,'Tab 1'!$A$2:$D$5,4,0)

Best regards,
Thank you so much.