Vlookup value From Another Table And Save it to Other Table

skhaliq

New Member
Joined
Dec 24, 2011
Messages
17
10356248_874943779184198_8300261521938171103_n.jpg
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
write =vlookup(A2,Product table A:B,2,0)
then press control +A
The press control + C
the right click then press V
(or select paste special/values) bit hard to tell considering you have not identified the version.
The press Control +s

If all else fails, press Control + F4

If you want this in macro format, please post your code for adjustment/tweaking/review.
 
Upvote 0
write =vlookup(A2,Product table A:B,2,0)
then press control +A
The press control + C
the right click then press V
(or select paste special/values) bit hard to tell considering you have not identified the version.
The press Control +s

If all else fails, press Control + F4

If you want this in macro format, please post your code for adjustment/tweaking/review.


dear these are ms access tables and i am asking ms access solution
 
Upvote 0
Firstly, what you are asking violates a basic rule of Relational data bases:

Avoid data redundancy. Ideally, a piece of data should be stored in only one place, so that
its value can never be ambiguous. When a value is needed, refer to the one place where it is
stored.

But since you asked, here is an update query that does what you are looking to do.

Code:
UPDATE Entry_table INNER JOIN Product_table ON Entry_table.Product_Code = Product_table.Product_Code SET Entry_table.[Product Name] = [Product_table].[Product_Name]
WHERE (([Entry_table].[Product_Code]=[Product_table].[Product_Code]));
You would normally just build a query to get the values of what you need for reporting and not have duplicate information in more than one location.

Suggest you read this white paper on database design.

Relational Database Principles
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top