Macro that will allow tab 1 's information to be copy to tab 2 [Solved/Closed]

Report
Posts
2
Registration date
Thursday March 31, 2016
Status
Member
Last seen
April 25, 2016
-
 HappyPerson -
Hello,
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 reply

Posts
2757
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
June 8, 2021
462
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,
Trowa
Thank you so much.

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!