Inventory run down based on date in another cell

sandwichgirl

New Member
Joined
Aug 13, 2007
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hi All

I am using a formula that calculates the run out date of stock based on a weekly usage and an opening stock figure - it then provides me with the date of the week the stock runs out.

I would like to have an alternative version that looks at a date when new stock comes in and calculates from there instead.

The current formula is:

INDEX($Z$4:$AS$4,MATCH(TRUE,SUBTOTAL(9,OFFSET(Z5:AS5,,,,COLUMN($Z$4:$AS$4)-COLUMN(Z5)+1))>+O5),0))

Z4:AS4 are the weekly dates, Z5:AS5 is the weekly usage
O5 is the stock quantity
and N5 is the date this new stock is available
I'd like a run out date calculated based on starting in N5 - how do I insert a 'start' date in this formula?

My specific query is, if the stock run out date is greater than the new stock date, then use the stock run out date, but if the new stock date is greater than stock run out, use the new stock date to calculate a new stock run out date.

Hope this makes sense and apologies if not.

thank you
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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