简体   繁体   English

Excel Pivot中的计算字段

[英]calculated field in Excel Pivot

I am pretty sure that what I want to do is not possible, but I thought I'd give the experts a try. 我很确定我想做的事是不可能的,但是我想我会尝试给专家的。

I have a pivot table with countries in rows, date in columns and kgs, acreage and yield in rows. 我有一个数据透视表,行中有国家,行中有日期和公斤,行中有耕地和产量。 I am trying to make an estimation using calculated fields. 我正在尝试使用计算所得的字段进行估算。 What I want is (current)acreage*(previous date)yield. 我要的是(当前)耕种*(以前的日期)收益率。 Kind of a modified "Show As" calculation. 修改后的“显示为”计算的种类。 Any ideas? 有任何想法吗?

Thanks in advance. 提前致谢。

Assuming that columns AD are Date; 假设AD列为Date; Kgs; 公斤; Acreage and Yield respectively and row 1 contains the labels, why not use a formula in column E. 面积和产量分别与第1行包含标签,为什么不在E列中使用公式。

As row 2 contains the first valid data, you would have to start at row 3. Therefore, cell E3 should contain the formula =C3*D2 which should be copied down to the last row of the pivot table. 由于第2行包含第一个有效数据,因此您必须从第3行开始。因此,单元格E3应包含公式=C3*D2 ,该公式应向下复制到数据透视表的最后一行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM