3

我有一个电子表格,我试图使用以下公式在每一行中添加序列号

=IF(C149<>"";MAX($B$149:OFFSET(B150;-1;0))+0.1;"")

但是,每当我删除 B 列中的行时,所有其他行中都会出现错误值,例如 #N/A

是否可以在不影响公式的情况下删除行?

我听说有一个excel函数“INDEX”要使用,请回答如何将INDEX函数应用于上述公式

4

2 回答 2

2

Not exactly the answer you were asking for, but google picks this out for deleting without breaking formaulas - so anyone landing here from google...

The formulas break because you are removing cells from the spreadsheet - chainging the structure of the sheet. Where as what you want to do is just remove the data, and have all the remaining data move up.

One way is to select all the data below the line you want cleared (plus one blank line at the end) - then copy that range (to the clipboard) and paste it all back in one row higher.

Not a great solution - but it works - I found this question looking for a better way! :)

于 2014-05-03T17:29:33.193 回答
0

问题可能与$B$149当您删除一行时,$ 表示 149 不能像C149andB150那样相应地更改,这可能意味着它在删除后指向不正确的数据。

于 2013-01-24T11:07:48.123 回答