Excel 公式:计算调查统计数据
我对 100 位用户进行了调查,并尝试计算一些统计数据。我的调查中的相关字段如下所示:
Gender Interests
B1: Male D1: Running, Snowboarding, Mountain Bikes
B2: Male D2: Programming, Running, Paintball
B3: Female D3: Bowling, Gymnastics
B4: Male D4: Rock Climbing, Running,
我需要计算对“跑步”感兴趣的男性的百分比。文本将始终以“Running”的形式出现在字符串中,但可能以不同的顺序出现。
到目前为止,我得到的是:
=SUM(
COUNTIF(
D1:D100,ISNUMBER(
SEARCH(D1:D100,"Running")
)
)
)
请注意,我还没有考虑男性/女性标准。该表达式当前返回 0。
任何帮助将不胜感激。
I have a survey from 100 users and I'm trying to calculate some statistics. The relevant fields in my survey look something like this:
Gender Interests
B1: Male D1: Running, Snowboarding, Mountain Bikes
B2: Male D2: Programming, Running, Paintball
B3: Female D3: Bowling, Gymnastics
B4: Male D4: Rock Climbing, Running,
I need to calculate the % of Males that are interested in "Running". The text will always appear in the string exactly as "Running" but it may appear in a different order.
Here what I have so far:
=SUM(
COUNTIF(
D1:D100,ISNUMBER(
SEARCH(D1:D100,"Running")
)
)
)
Notice I haven't factored in the Male/Female criteria yet. This expression is currently returning a 0.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
解决这个问题的一个简单方法是稍微分解一下你的计算。
在另一列中,使用如下公式:
对于所有将“跑步”列为兴趣的男性,这将为您提供 1,而对于所有其他人,则为 0。将其一直复制到工作表中,然后很容易计算百分比,例如,如果列是 E:
An easy way to approach it would be to break up your calculations a little.
In another column use a formula like this:
This will give you a 1 for everyone who is Male and has "Running" listed as an interest and a 0 for all others. Copy that all the way down your sheet and then it's easy to calc the percentage, for example if the column was E:
您还应该测试一下这个比例(喜欢跑步的男性的百分比)是否是侥幸。
您可以进行(皮尔逊或似然比)卡方检验来查看比例是否与预期不同。
例如,您还可以进行费舍尔精确检验来查看性别之间的比例是否不同。
You should also test to see if this proportion (% of men that like running) is by fluke or not.
You can do a (Pearson or Likelihood Ratio) Chi-Square test to see if the proportions are different from expected.
You can also do Fisher's Exact Test to see, for example, if the proportion is different between genders.
您可以使用 Excel 和 ADO 做很多事情。
You can do a lot with Excel and ADO.