将两列乘以一个标量
我想将给定单元格的值乘以标量并将结果输出到相邻单元格。例如,如果我有:
B C
1 25 ?
2 20 ?
3 21 ?
4 23 ?
我希望每个 C 列中的 ?
值为 20 *(B 在同一行)
。即(C1 = B1*20,C2=B2*20,C3=B3*20,...
)。我知道我可以对每一行单独执行此操作,但我希望立即对整列执行此操作。
如果相关的话,我正在使用 Excel 2008 for Mac。
I'd like to multiply the value of a given cell by a scalar and output the result to an adjacent cell. For example, if I had:
B C
1 25 ?
2 20 ?
3 21 ?
4 23 ?
I want the ?
values in each C column to be 20 * (B in same row)
. i.e. (C1 = B1*20, C2=B2*20, C3=B3*20, ...
). I know I could do this individually for each row, but I'm hoping to do it for the entire column at once.
I'm using Excel 2008 for Mac if that is relevant.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
某处应该有一个“Fill Down”菜单项;否则,您可以复制
C1
,突出显示C
中的相应单元格并粘贴。 Excel 会为您处理行号的更改。There should be a "Fill Down" menu item somewhere; otherwise you can copy
C1
, highlight the appropriate cells inC
and paste. Excel handles changing the row numbers for you.