Is it possible to do this in Excel..

singh.r

New Member
Joined
Aug 18, 2010
Messages
8
Hii,
I am an average good user of excel, till now I have been able to solve all kind of complex calculations some way but I have encountered a situation & wondering if there is any way to do this in excel or using some VBA. I would be grateful to all of you for this.

My excel sheet is some thing like this

Order No Require Item Require Qty Stock Status
10001 XXXXX 100 300 200
10001 YYYYY 100 200 100
10002 XXXXX 200 300 200
10002 YYYYY 200 200 100
10003 XXXXX 100 300 100
10003 YYYYY 100 100 000

There are a lot of different orders for different different products but all have some common ingredients. On any given day If I see my pending orders & Inventory then it looks like above & showing all stock available but I can't process all my orders as stock will be reduced after first order, then I wont be able to process second order but I can process 3rd one . What I want to do is process this data some way that It takes the first order & if all the material is available then reduce the stock so in above example after first order XXXXX will be left 200 & YYYYY 100. Then for next order XXXXX is sufficient but YYYYY is not available so no stock shall be deducted & for third order calculation also XXXXX will be 200 & YYYYY will be 100 & if there is any next order then for that XXXXX = 100 & YYYYY = 0 . Then show it in next column.

I don't think it's possible without VBA but I am not much familiar with that other than copy & pasting the codes from web & modifying here & there. But an expert might do it with excel also.. (I will appriciate if any1 can give me a VBA code ) This is just example in actual my data is 20000 or more row with a lot of product combinations.

Thanking you all in advance for your input & support
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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