简体   繁体   English

Excel公式中的“ $”是什么意思? 例如:$ B $ 4

[英]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.

相关问题 Excel公式中的“,X”是什么意思? - What does “,X,” in an Excel formula mean? Excel计算整列的唯一值,例如A:A - Excel Count Unique Values Whole Column e.g A:A 这个公式在excel中意味着什么? (一个单元格等于一个范围) - What does this formula mean in excel? (A cell equals a range) Excel 公式中的“@”符号是什么意思(表格外) - What does the "@" symbol mean in Excel formula (outside a table) 如何在 Power BI 中创建以下公式 Excel 以及 -100% 在 Excel 公式中是什么意思? - How to create following formula Excel in Power BI and what does -100% mean in Excel formula? 在公式中同时使用第一行数据和最后一行数据,例如匹配 - Using both first row of data and last row of data within a formula e.g match 将链接直接插入图像行旁边(例如B2 Photo要A2链接) - Insert links into image row directly beside it (E.g B2 Photo wants A2 link] Excel 将日期低于月份的日期(例如 4 月 2 日)更改为相反的日期(例如 2 月 4 日) - Excel changes dates where the day is lower than the month (e.g 2nd april) to the reverse (e.g 4th feb) 有没有办法遍历 excel 列来检查每个值的前一个值是否高 1? 例如 (1, 2, 3, 4, 5) - Is there a way to iterate through an excel column to check that every values' preceding value is higher by 1? E.g (1, 2, 3, 4, 5) 我的工作表中的公式以= +开头是什么意思? - A formula in my worksheet starts with =+ what does that mean?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM