w**********a 发帖数: 107 | 1 【 以下文字转载自 Statistics 讨论区 】
发信人: wakakayikaka (哇咔咔一咔咔), 信区: Statistics
标 题: Pivot table SOS
发信站: BBS 未名空间站 (Thu Jan 21 16:36:22 2016, 美东)
I have a question on excel pivot table.
Here is my data set
Company profit
A 1
A 1
A -1
A -2
A 3
B 1
B 1
B 1
C -2
The pivot table I need is as follows:
Positive
A: 1
B: 3
Negative
C: -2
The pivot table I can get is
Positive
A: 4
B: 3
Negative
A: -3
C: -2
How do I net company A in pivot table?
Thanks a million! | b*******z 发帖数: 331 | 2 easy.
what you need is just another columns defining "positive" and "negative"
so just,
=if(sumif(company col,company name)>=0, "positive"), "negative") |
|