Vba code for qty data update

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Team,

I am looking vba code in order to get desire output. I have several columns which contains product details, there is column called "Qty" we get request from customer and will order the goods based on available qty in our store. If available in store then will get it otherwise will get it from different supplier.

The interesting part is then each product has different qtys and products may repeat in the excel lines items the main qty column should automatically change when we identified the available stock in the store.

For example:
Require product details as below.
Product A 20
Product B 10
Product c 15
Product B 05

In Store
Product A 10
Product B 12

Here if you can see for Product B we need 10 qty however in store we have 12 so, we have 2 excess in first instance so, I need status correspondent to product B is 12-10 = 2.
Later, if move to same product in further line again need 05 qty but we have only 2 hence, correspondent status should be -3.

Here need to dynamically qty column should change as per requirement and should show the left qtys.

Hope can anyone should assist me with above requirement.

Thank you
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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