1. 有一组数据,如何计算百分比占比?
这是维基百科各语言版本的页面浏览量,我们希望能知道各个语言的百分比占比。 数据来自: Wikipedia

2. PERCENTOF 函数参数
这是使用
PERCENTOF
函数的语法。=PERCENTOF(data_subset,data_all)
data_subset
: 必填 数据子集中的值。 data_all
: 必填 构成整个集的值。 3. 开始使用 PERCENTOF 函数
在单元格上,输入
=PERCENTOF(

4. 选择要计算百分比的单元格
点击一下要计算百分比的单元格,这里是
H6
, 然后现在的函数就变成了:_=PERCENTOF(H6

5. 选择一组要组成总数的单元格
增加一个逗号,然后选择一组要组成总数的单元格。这里鼠标拖拉选中,也可以选择第一行 H6, 然后
Shift
+ 点击最后一行去选中, 现在的函数就变成了:_=PERCENTOF(H6,H6:H20

6. 相对引用转为绝对引用
选中相对引用
H6:H20
,然后按一下 F4
,它就会变成绝对引用:$H$6:$H$20

7. 按一下回车
这时候会看到自动生成的百分比数字: 0.523126077,它可能还不是 % 的形式

8. 右键编辑单元格格式
鼠标移到单元格上方,右键,选择
Format Cells

9. 设置格式
选择
Category
为 Percentage
,点击 OK 保存
10. 得到百分比
这时候我们就可以看到百分比了

11. 完成任务
把当前单元格的格式延伸到下方其他单元格,就得到我们想要的数据了

