[英]What does '$' mean in Excel formula? e.g: $B$4
What does $B$4
mean in Excel? $B$4
在Excel中是什么意思?
Here's a sample code: 这是一个示例代码:
Cells(7, 15).Value = "=0.1*$B$4*M7*N7"
and 和
Cells(7, 17).Value = "=P7*1.3*$B$4"
The $
sign causes the cell column or row or both in a formula to be fixed. $
符号会导致公式中的单元格列或行或两者都固定。
That is, if you drag the formula cell horizontally or vertically in order to copy the formula, Excel will not adjust this value. 也就是说,如果水平或垂直拖动公式单元格以复制公式,Excel将不会调整该值。
For example : 例如 :
Cell Formula
A0 =$B4
If I drag this horizontally I will get : 如果我水平拖动,我将得到:
Cell Formula
B0 =$B4
C0 =$B4
If I drag this vertically I will get : 如果垂直拖动,我将得到:
Cell Formula
A1 =$B5
A2 =$B6
Without the dollar sign : 没有美元符号:
If I drag this horizontally I will get : 如果我水平拖动,我将得到:
Cell Formula
B0 =C4
C0 =D4
If I drag this vertically I will get : 如果垂直拖动,我将得到:
Cell Formula
A1 =B5
A2 =B6
The dollar sign allows you to fix either the row, the column or both on any cell reference, by preceding the column or row with the dollar sign. 美元符号允许您通过在列或行前加上美元符号来在任何单元格引用上固定行,列或两者。
In your example you fix the column to B and the row to 4 because you probably want to take in consideration only that cell for your formula. 在您的示例中,将列固定为B ,将行固定为4,因为您可能只想在公式中考虑该单元格。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.