Stock book subtraction after a certain sum (for vaccine stock)

Raja Nazir

New Member
Joined
Apr 22, 2021
Messages
1
Office Version
  1. 2013
  2. 2010
  3. 2007
Platform
  1. Windows
Hi,
I 'm a vaccinator , I have to maintain stock book of vaccine. vaccine vial comes in different doses. So until the dose is, we have to place the same previous value.
for example a vaccine vial of TT comes in 20 doses,
1.jpg
now, I have used 4, 6, 8, 4(=22) doses in four days, so On fourth day i will have to open a new vial, until then, I want the same quantity in total column that is 220, and on fourth day,the formula subtract only 20 doses .
is there any formula for that, it will save my time and will be thankful
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to MrExcel Message Board
Book1
ABCD
1
2
3TT
4InOutTotal
5
6
7
80220
94220
106220
118220
124200
132200
149200
156200
165180
173180
184180
195180
20
Sheet2
Cell Formulas
RangeFormula
C9:C19C9=$C$8 + SUM($A$5:A9) - INT(SUM($B$5:B9)/20)*20
 
Upvote 0
Or Try This:
Book1
ABCD
1
2
3TT
4InOutTotal
5
6
7
80220
94220
106220
118220
124200
132200
149200
156200
165180
173180
184180
195180
20
Sheet2
Cell Formulas
RangeFormula
C9:C19C9=INDEX(C:C,MATCH(TRUE,INDEX(ISNUMBER(C:C),0),0)) + SUM($A$5:A9) - INT(SUM($B$5:B9)/20)*20
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,333
Members
449,218
Latest member
Excel Master

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