简体   繁体   English

数据透视表中非数字答案的百分比?

[英]Percentage of non-numeric answers in PivotTable?

I received an Excel spreadsheet of survey answers and I'm trying to figure out how to created a PivotTable that will give me the percentage of total respondents who responded with each (non-numeric) answer. 我收到了一个包含调查答案的Excel电子表格,我试图弄清楚如何创建数据透视表,该数据透视表将为我提供回答每个(非数字)答案的受访者总数的百分比。 For example, this is one of the columns in the table I was given: 例如,这是给出的表中的列之一:

How many assets are in your organization?
------------------------------------------
Less than $1 million
$1 million - $5 million
$1 million - $5 million
Less than $1 million
Less than $1 million
Less than $1 million
$1 million - $5 million
Less than $1 million
Less than $1 million
Less than $1 million
$1 million - $5 million
Less than $1 million
$1 million - $5 million
Less than $1 million
Less than $1 million
$1 million - $5 million
Less than $1 million
$1 million - $5 million
Less than $1 million
$1 million - $5 million
Less than $1 million
Less than $1 million
Less than $1 million
$200 million - $500 million

I need to generate results ie: 我需要产生结果,即:

Less than $1 million: 40% 不到一百万美元:40%
$200 million - $500 million: 20% 2亿美元至5亿美元:20%
etc. 等等

If your results are in Column A for example, then something like: 例如,如果您的结果在A列中,则类似于:

="Less than $1 million: "&(COUNTIF(A:A,"Less than $1 million")/COUNTA(A:A))*100&"%"

should do you. 应该做你。

If you have a header in Row 1 then change COUNTA(A:A) to COUNTA(A:A)-1 如果行1中有标题,则将COUNTA(A:A)更改为COUNTA(A:A)-1

based on your example above, this formula would return "Less than $1 million: 62.5%" 根据上面的示例,此公式将返回“少于一百万美元:62.5%”

SO'S answer is exactly what you need but if there are lots of different values in your data column A:A I'd go one step further and make a copy of the column, paste it in an adjacent column (assuming column B here but could be anywhere you want to summarise), use excel's remove duplicates feature to leave a list of unique values and then change the formula to 这样的答案正是您所需要的,但是如果您的数据列A:A中有很多不同的值,我会进一步走一步,并复制该列,然后将其粘贴到相邻的列中(假设此处是列B,但可以可以在任何要汇总的地方使用),使用excel的删除重复项功能可保留唯一值列表,然后将公式更改为

=(COUNTIF(A:A,B1)/COUNTA(A:A))*100&"%" =(COUNTIF(A:A,B1)/ COUNTA(A:A))* 100&“%”

I'd put this in C1 and then paste it down against all the unique values in column B. 我将其放在C1中,然后将其粘贴到B列中的所有唯一值中。

With a PT as mentioned: 使用上述的PT:

S27406891例子

and one of the "Count of"s with Show Values As % of Grand Total . 以及其中显示值% of Grand Total的“计数” % of Grand Total

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

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