12345678910 |
- Cell,Formula,Description
- A1,=SUM(B1:B10),Total balance
- A2,=A1 - C1,Remaining balance
- B1,[Input from coin slot],Inserted coin value
- C1,[Selected item price],Price of the selected item
- D1,=IF(A2>=0; A2; 0),Change to return
- E1,=SUM(F1:F10),Total sales
- F1,=IF(G1>0; C1; 0),Sale amount for item 1
- G1,[Stock for item 1],Current stock of item 1
- H1,=G1 - IF(F1>0; 1; 0),Updated stock after dispensing
|