Closing stock formula needed

Balmer07

New Member
Joined
Feb 14, 2018
Messages
45
Office Version
  1. 365
Hi,

I need some help to automatically calculate my closing stock using a formula (using December 21 as an example)

In column 'D' I have date purchased
In column 'E' I have date sold
If not yet sold then column 'E' is blank
Value of stock purchased is in column 'G'

I need a formula to calculate the closing stock figure for December which must also include any unsold stock from previous months. The formula also needs to consider that when the stock is sold the closing stock figure for December cannot change.

The closing stock cell will need to work from the month and year which will be in another cell and written as 'Dec-21' or 01/12/2021 when you click into the cell.

Hopefully this makes sense and I would appreciate the help.

Steven
 

Attachments

  • Screenshot 2022-01-14 104744.png
    Screenshot 2022-01-14 104744.png
    4.9 KB · Views: 14

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Manage to resolve using the below formula which I worked out:

Excel Formula:
=SUMIFS(Master!$G:$G,Master!$D:$D,"<="&EOMONTH(B3,0),Master!E:E,"")+SUMIFS(Master!$G:$G,Master!$D:$D,"<="&EOMONTH(B3,0),Master!$E:$E,">="&EOMONTH(B3,0))
 
Last edited by a moderator:
Upvote 0
Solution

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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