MAHENDRA WAMAN
New Member
- Joined
- Jun 17, 2008
- Messages
- 7
I have a table with 5 columns. The First Column is an Opening Balance, second column is Received Quantity, third column is Issued Quantity, fourth column is Closing Balance and the fifth column is Date. I am using this table to maintain a simple inventory. The very first cell under the Opening Balance is entered as an integer value initially. Then onwards only the Received Quantity and Issued Quantity values are entered and the Closing Balance and the Opening Balance values are calculated using formula.
E.g.
A1,B1,C1,D1,E1
A2,B2,C2,D2,E2
A3,B3,C3,D3,E3
A4,B4,C4,D4,E4
.
.
.
The A1 value is entered as 10. The Received Quantity is 0, Issued Quantity is 0 and thus the Closing Balance is calculated as =A1+B1-C1 which will give us value as 10.
The value for A2 is taken as the value of D1 i.e. closing balance of previous day which is 10.
Now when the Quantity is issued, I want to make sure that it does not cross the sum of Opening Balance and Received Quantity so that the Closing Balance does not run into a negative value.
I tried it using Data Validation but could not achieve it; tried validation options on cell C2 as well as on cell D2.
Can anybody guide how to achieve this?
Thanks.
E.g.
A1,B1,C1,D1,E1
A2,B2,C2,D2,E2
A3,B3,C3,D3,E3
A4,B4,C4,D4,E4
.
.
.
The A1 value is entered as 10. The Received Quantity is 0, Issued Quantity is 0 and thus the Closing Balance is calculated as =A1+B1-C1 which will give us value as 10.
The value for A2 is taken as the value of D1 i.e. closing balance of previous day which is 10.
Now when the Quantity is issued, I want to make sure that it does not cross the sum of Opening Balance and Received Quantity so that the Closing Balance does not run into a negative value.
I tried it using Data Validation but could not achieve it; tried validation options on cell C2 as well as on cell D2.
Can anybody guide how to achieve this?
Thanks.