简体   繁体   English

使用Microsoft Excel的交叉表数据透视表

[英]Cross tab pivot table using Microsoft Excel

is there any ability to create pivot table in microsoft excel like below: 有没有能力在Microsoft Excel中创建数据透视表,如下所示:

Source data: 源数据:

Id Gender VisitAttr VisitAttrValue PersonDetails Person Value 220225 M VisitStatus OPD Religion Hindu 220224 M VisitStatus OPD Religion Christian 220225 M VisitStatus OPD class OBC 220225 M VisitStatus OPD Occupation farmer

Expected format: 预期格式:

Id Gender VisitStatus Religion Class Occupation 22025 M OPD Hindu OBC farmer 22024 M OPD Christian

I tried to achieve above using Pivot table function in Excel. 我试图在Excel中使用数据透视表功能实现上述目的。 But it excepts some grouping function to be achieved for data values. 但是它除了要为数据值实现某些分组功能外。 Please help. 请帮忙。

I'm afraid not from the data layout as shown. 恐怕不是如图所示的数据布局。 Your data would have to be normalised first (which I assume you can manage) and in any case VALUES will only output numeric values (or blanks/zeros). 您的数据必须先进行规范化(我认为您可以管理),并且在任何情况下VALUES只会输出数字值(或空白/零)。

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

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