问题描述
我有连续的项目(项目1,项目2等),并在一列中列出了每个项目的价格,我可以写一个复杂的公式来计算每个项目的总计人,而无需手动输入所有路口?
| Name | Total | item 1 | item 2 | item 3 | | |
|--------|---------|--------|--------|--------|-----------------|----|
| John | 2+9+2=13| 1 | 3 | 2 | price of item 1 | $2 |
| Daniel | 0+6+1=7 | 0 | 2 | 1 | price of item 2 | $3 |
| Max | 2+3+0=5 | 1 | 1 | 0 | price of item 3 | $1 |
Link to Google Spreadsheet with the example
不幸的是,我不能在这里使用脚本,否则,这将是小菜一碟:(