Tough vba lookup

lecet444

Board Regular
Joined
May 18, 2011
Messages
91
Ok, so i have values (150 names) in a column A, in sheet 1 and correspondong qty in column B....

In sheet 2, i have 16 names in column A that are constantly changing, with their corresponding qty.

The values in sheet 2 column A are the same as sheet 1, quantities are different.

I want to add the quantities from sheet 2 to the previous quantity from sheet 1 with the correct names. And it would do that anytime sheet 2 is updated
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You may be able to try this:

=VLOOKUP(A1,Sheet1!$A$1:$B$150,2,FALSE)+Sheet2!B1

Paste this into cell C1 on sheet 2. Copy paste down through C16. It will sum the values to the right of the names that match.

Hope thats what you are looking for.

Luke
 
Upvote 0
The sheet witg the 16 are order forms, so theyre continuously updated with different names and quantitirs. Sheet 1 is the master and needs to be upto date via the addition of quantities in sheet 2.
 
Upvote 0
So you want the values in Sheet 1 column B to be over-written with the addition of the current values plus the new values entered into column B sheet 2? If this is what you are looking for you need VBA code.

Luke
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,183
Members
452,893
Latest member
denay

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