ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   subtract entries from allocated total until it reaches zero (https://www.excelbanter.com/excel-worksheet-functions/240195-subtract-entries-allocated-total-until-reaches-zero.html)

kirbydog

subtract entries from allocated total until it reaches zero
 
I am trying to make numbers entered into a column subtract from a fixed cell
which contains an allocated total, and as the numbers are entered into the
column they subtract from the allocation until it reaches zero.

Max

subtract entries from allocated total until it reaches zero
 
One formulas idea via using a dynamic range

In Sheet1,
Assume the reduction amts will be entered progressively in A2 down to A1000
(w/o intervening blank cells)

Create a dynamic defined range, via InsertNameDefine:
Names in workbook: Reduction
Refers to:
=OFFSET(Sheet1!$A$2,,,COUNT(Sheet1!$A$2:$A$1000))

Then assuming your allocated total amt is 100,
you can enter something like this in A1: =100-SUM(Reduction)

Test it out .. A1 will monitor & return the desired residual amts
Success? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"kirbydog" wrote:
I am trying to make numbers entered into a column subtract from a fixed cell
which contains an allocated total, and as the numbers are entered into the
column they subtract from the allocation until it reaches zero.



All times are GMT +1. The time now is 01:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com