我的 Excel 表用于测量运动中受伤的发生率。我想显示整个团队中发生了多少特定伤害。例如,整个球队发生了 10 次头部受伤。我使用过 IF 和 Counts,但似乎无法让它工作。如果这有区别,“结果”表与“数据”表位于不同的选项卡上
数据表
POSITION PLAYER Code Region
PROPS A Prop HHOO Head Injury
A Prop HZEX Head Injury
B Prop HZNM Head Injury
B Prop HZNM Head Injury
C Prop NKXX Neck Injury
结果表
Musculoskeletal Injuries
Region Players effected by injury
Head Injury #REF!
Neck Injuries
Shoulder Injuries
Upper Arm Injuries
因此,在头部受伤下,B 支柱应该写 2
答案1
- 计算受伤人数计数公式。
Syntax COUNT(value1, [value2], ...) The COUNT function syntax has the following arguments: value1 Required. The first item, cell reference, or range within which you want to count numbers. value2, ... Optional. Up to 255 additional items, cell references, or ranges within which you want to count numbers.
- 使用If 语句以适合您的数据的方式。
Syntax IF(logical_test, value_if_true, [value_if_false]) For example: =IF(A2>B2,"Over Budget","OK") =IF(A4=500,B4-A4,"" Argument name Description logical_test (required) The condition you want to test. You can nest other logical functions within this argument, including AND, OR and XOR functions. value_if_true (required) The value that you want returned if the result of logical_test is TRUE. value_if_false (optional) The value that you want returned if the result of logical_test is FALSE.
注意:如果您想从公式内的不同选项卡中选择数据,请尝试以下操作:首先编写公式并单击需要更改的变量,然后选择不同的选项卡并选择与公式相关的特定单元格。
如果您提供您的数据,我可以提供有关您的问题的更多详细信息。