Closed azu closed 3 years ago
currently, spreadsheet has a sheet per year.
props
cons
props
cons
options 2: all data in a single sheet
=SUMIFS(C:C,A:A,"2021-*")
can calculate date by year.
If we can record the history of budge in option 2, we can select option 2.
Budget Sheet is reasonable for me.
Ok. I figure out!
Example
https://docs.google.com/spreadsheets/d/1We_196wyVdIu2Kttt4eHaqIfmS-86SWUMN7DsW8DfiI/edit?usp=sharing
2021
sheet to Record
(bike sharing name)Budget
sheet and move current budge to Budget
sheetBudget Schema
Year | Budget | Used | Balance |
---|---|---|---|
2020 | ¥200,000.00 | ¥0.00 | ¥200,000.00 |
2021 | ¥200,000.00 | ¥337,861.02 | -¥137,861.02 |
Year
is manual input(2020, 2021 ...)Budget
is manual inputUsed
refer Record
sheet via =SUMIFS('Record'!C:C,'Record'!A:A,INDIRECT(ADDRESS(ROW(),COLUMN()-2))&"-*")
Balance
refer Record
sheet via =INDIRECT(ADDRESS(ROW(),COLUMN()-2))-INDIRECT(ADDRESS(ROW(),COLUMN()-1))
Budget
to be =IFERROR(Index(QUERY(Budget!A:B, "select * where A = "&YEAR(TODAY()), 0),1,2), 0)
Used
to be =SUMIFS(C:C,A:A, YEAR(TODAY())&"-*")
Balance
to be =A2-B2
📝 If a budget of current year is missing, Budget
show 0
.
Step
After migration and we need to add docs
Now, new schema. We will continue to write docs #37
The user can edit their own spreadsheet directly. So, we should provide spreadsheet schema.
The user can know that what cell can be edit or not.