calculating ageing of inventory base on months and weeks

moein

New Member
Joined
Feb 21, 2018
Messages
8
Hello every one!

recently we want to calculate the age of our stock base on days and weeks and months, here is our sample file

A1
Product Code​
Brands​
Product name​
Month1​
Month2​
Month3​
Month4​
Month5​
Month6​
Month7​
Month8​
Month9​
Month10​
Month11​
Month12​
Total buy-in​
total sales out​
current stock​
AGING OF STOCK​
920104058​
BAG​
BAG Green2​
0​
380​
0​
0​
450​
0​
0​
0​
0​
0​
300​
0​
1130​
687​
443​
68​

what im looking for is VBA witch get month number throw input then divide the current stock from input number month if its greater than month number then goes to one month back and caluculate again and at least show the age of the goods in inventory in another colums

this file have N row but for culums its fixed

will look forward to right answers,
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,467
Messages
6,124,985
Members
449,201
Latest member
Lunzwe73

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