Stock & sales calculation

Sigh

Active Member
Joined
Oct 24, 2007
Messages
379
I cells B1-M1 I have the months of the year, In A2 I have the current stock figure, in B2-M2 are the sales figures for each month in the previous year. In N2 I would like a calculation that subtracts the sales from the stock figure and reports the month in which there will be no stock left, is this possible in a formula?
 
Array enter

=LOOKUP(MIN(IF(SUBTOTAL(9,OFFSET($B4,0,0,1,COLUMN($B4:$M4)-COLUMN(B4)+1))>=$A$2, COLUMN($B4:$M4)-COLUMN(B4)+1)),P3:Q14)
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,216,096
Messages
6,128,807
Members
449,468
Latest member
AGreen17

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