简体   繁体   English

通过列复制公式

[英]Copy formula through columns

Good afternoon in my timezone. 我所在的时区下午好。

I am using the row() function in excel cell like this way = ROW() 我正在像这样在excel单元格中使用row()函数= ROW()

First question : Why this does not evaluate to the real row number and the cell maintain the "= ROW()" text 第一个问题:为什么这不能求出实际的行号,并且单元格保留“ = ROW()”文本
Second question : If i try to copy the cell content(in this case the "=ROW()") to the rest of column cells , the text "= ROW()" is maintained like this way 第二个问题:如果我尝试将单元格内容(在本例中为“ = ROW()”)复制到其余的列单元格,则将以这种方式维护文本“ = ROW()”

=ROW()
=ROW()
=ROW()
=ROW()
=ROW()
=ROW()
=ROW()
=ROW()
=ROW()
=ROW()

Thanks in advance Best regards 预先感谢问候

It sounds like you are having one of two issues (or both): 听起来您遇到两个问题之一(或同时有两个):

(1) The cells are formatted as text. (1)单元格的格式为文本。 Change the formatting to general or a number format. 将格式更改为常规或数字格式。 Then select the first formula cell, click into the formula bar, and press enter. 然后选择第一个公式单元格,单击进入公式栏,然后按Enter。 It should start returning the row number. 它应该开始返回行号。 Copy that cell down. 向下复制该单元格。

(2) If your formula starts with ' (an apostrophe) then the formula is evaluated as text and the output will be the text of the formula and not the row number. (2)如果您的公式以'(撇号)开头,则该公式将被视为文本,并且输出将是该公式的文本而不是行号。

Lastly, if that doesn't seem to do it, make sure your workbook is updated. 最后,如果似乎没有做到,请确保您的工作簿已更新。 If you have manual updates on you may need to manually tell Excel to recalculate all formulas. 如果您有手动更新,则可能需要手动告诉Excel重新计算所有公式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM