To just use the sheet directly from Google, go:
- here for G-Suite,
File->Make a copy
then you can start entering data. If you want to use the binary from the repo, instructions are below. - Office365 - the online version of office doesn't support iterative calculation, so use the Excel file attached to the release
User documentation is here.
Install is more "import", but there's some fixup required because of a Sheets bug I haven't got a workaround for as yet.
There's a binary sheet attached to the releases, suitable for import into Google Sheets, and a version suitable for Excel.
- Download the latest binary sheet
- Create a new Google Sheet - open this in new window
- Go to File->Import->Upload->Browse - this will open a system file selection box. Select the downloaded sheet.
- Choose
Replace Spreadsheet
, and selectImport data
- FIXUP: there's a Sheets import bug (#30) that drops the checkbox validation from
Use for fraction
column in ESPP and RSU sheets:- Menu
Data->Data validation
, thenAdd rule
at the bottom of the right side pane that opens. - Set
Apply to range
toESPP!N7:N26
,Criteria
toTick box
. ClickDone
. - Repeat (2) but with
Apply to range
asRSU!J7:J84
- If
ESPP!N5
is displaying#REF!
, replace the cell formula with=COUNTIF(N7:N, TRUE)
- Repeat (4) but for
RSU!J5
, replacing with=COUNTIF(J7:J, TRUE)
- (the bottom sums are just for convenience and because people expect totals at the bottom - fix them up with the same formula if you care)
- Menu
- Import the AppScript (needed for running lot optimization)
- In the sheet,
Extensions->App Scripts
and copy the .gs files from the repo worksheet directory. - Either reload the spreadsheet, or run the
common.gs:onOpen
function using the AppScript UI - Menu
Custom Functions->All balance
to trigger auth prompts - Accept the authorization prompts - like self-signed website certs, you need to look at the small links below the main warning and text to proceed.
- In the sheet,
- Run the
Custom Functions->Optimize per-lot (avgo basis)
function - you'll be- This sets the preference for each lot to
cash
orshares
and you'll see the impact if choosingmanual per-lot ratio
in the Tweaks. - If you want to make changes to the sheet, then export those changes for a PR, use the
Custom Functions->Export Workbook (Censored)
. This will write json to a Google Drive location and is the mechanism I use to construct the json in the repo. These are intended for easy visual review of diffs. Well, easy compared to doing it as a spreadsheet.
- This sets the preference for each lot to