将多个单元格乘以另一个数字的最快方法是什么?
如果我有一个单元格块,例如 A1:D5,使用 Microsoft Excel 将每个单元格乘以另一个数字 1.1 的最快方法是什么?
If I have a block of cells such as A1:D5, what's the quickest way of multiplying each cell by another number, 1.1 using Microsoft Excel?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
(Excel 2003 或更早版本) 选择编辑| 选择性粘贴 | 乘法
(Excel 2007 或更高版本)单击“粘贴”向下箭头 | 选择性粘贴 | 乘法
(Excel 2003 or earlier) Choose Edit | Paste Special | Multiply
(Excel 2007 or later) Click on the Paste down arrow | Paste Special | Multiply
您是问如何在 Excel 中执行此操作还是如何在 VBA 应用程序中执行此操作? 如果您只想在 Excel 中执行此操作,这是一种方法。
Are you asking how to do it in excel or how to do it in a VBA application? If you just want to do it in excel, here is one way.
要将一列数字与一个常数(相同的数字)相乘,
我已经这样做了。
令
C2
到C12
为需要乘以单个数字(常数)的不同数字。 然后输入从C2
到 C12 的数字。在
D2
中输入 1(单位),在E2 中输入公式 =PRODUCT(C2:C12,CONSTANT)
。 选择正确的图标进行应用。 现在将E2
拖过E12
。 你已经做到了。To multiply a column of numbers with a constant(same number),
I have done like this.
Let
C2
toC12
be different numbers which need to be multiplied by a single number (constant). Then type the numbers fromC2
to C12.In
D2
type 1 (unity) and inE2 type formula =PRODUCT(C2:C12,CONSTANT)
. SELECT RIGHT ICON TO APPLY. NOW DRAGE2
THROUGHE12
. YOU HAVE DONE IT.将要乘以的数字放入不在您的范围内的单元格中。 选择单元格并将其“复制”到剪贴板。
接下来,选择范围 A1:D5,然后从菜单中选择“编辑|选择性粘贴”。
将出现一个对话框。 在“操作”区域中,选择“乘法”,然后单击“确定”。
Put the number you want to multiply by in a cell that is not in your range. Select the cell and "Copy" it to the clipboard.
Next, select the Range A1:D5, and from the menu choose Edit|Paste Special.
A dialog box will appear. In the "Operation" area, select "Multiply" and click "OK".
从答案单元格的编辑栏中选择
产品
。选择要相乘的单元格。
Select
Product
from formula bar in your answer cell.Select cells you want to multiply.
如果它不需要是宏,则只需将
=A1*1.1
放入(例如)D7,然后将公式填充手柄横向拖动,然后向下拖动。If it doesn't need to be a macro, then just put
=A1*1.1
into (say) D7, then drag the formula fill handle across, then down.正如上面的答案之一所说:“然后拖动公式填充手柄。” 这个KEY功能在MS的解释中没有提到,这里的其他人也没有提到。 我花了一个多小时尝试遵循各种指示,但无济于事。 这是因为您必须在单元格底部附近单击并按住(至少在我的计算机上这并不容易),以便出现某种“手柄”。 一旦你足够幸运得到这个,然后小心地滑动[“拖动”]你的光标到你想要乘以常数的最下面的单元格。 当您向下移动时,产品应该显示在每个单元格中。 只需向下拖动,您就只能在第一个单元格中得到答案以及大量空白区域。
As one of the answers above says: " then drag the formula fill handle." This KEY feature is not mentioned in MS's explanation, nor in others here. I spent over an hour trying to follow the various instructions, to no avail. This is because you have to click and hold near the bottom of the cell just right (and at least on my computer that is not at all easy) so that a sort of "handle" appears. Once you're luck enough to get that, then carefully slide ["drag"] your cursor down to the lowermost of the cells you want to be multiplied by the constant. The products should show up in each cell as you move down. Just dragging down will give you only the answer in the first cell and a lot of white space.