Be easy, first time poster. I'm creating a spreadsheet to track my stocks and having trouble solving a problem with a Ledger calculation. The url to an example spreadsheet is: https://docs.google.com/spreadsheets...it?usp=sharing. As you can see from the example spreadsheet, I have assigned Transaction Id's to each block of stocks sold, bought, or dividends received. Assigning id's to each block allows me to pick and choose which block of shares I want sell for purposes of calculating a cost basis. My question is how do I make a calculation based on a cell that has the values of '3,4,5' (without the ''). The calculation, in the provided example for Cell J6, would need to be G6-G3-G4-G5. Make sense?