JavaScript Method to change PivotTable Data Range

2019-06-24 12:29发布

What is the method to change the data range of a pivot table in a Google Docs spreadsheet?

The documentation for this is not on Google's support site.

2条回答
Lonely孤独者°
2楼-- · 2019-06-24 12:31

I found a workaround that could help you.

Create a sheet dedicated to your data, row 1 = headers, all other rows = data.

Delete rows with no data.

If for example you use columns A through F, create a Pivot and use this range: SHEET_NAME!A:F

The pivot will "grow" to the news rows because the range is "all the data in the columns A to F".

查看更多
劫难
3楼-- · 2019-06-24 12:52

Unfortunately it's not possible to modify pivot table settings via Google Apps Script. If you'd like to see this feature please file a feature request on our issue tracker.

查看更多
登录 后发表回答