[英]Locating ID number and copying to cell in another column using Excel Formula
I have a specific cell value that signifies that the cell next to it is the ID of my object (in this case the object ID of a shapefile feature). 我有一个特定的单元格值,它表示它旁边的单元格是我的对象的ID(在本例中为shapefile特征的对象ID)。
and 和
I'd like to copy this ID into every cell in the column next to the XY coordinates. 我想将此ID复制到XY坐标旁边的列中的每个单元格中。 Like to:
喜欢:
The number copied should coincide with the last ID, which comes up with the ;9. 复制的数字应与最后的ID一致;后者带有; 9。
I've tried this, but it does not update the ID number automatically. 我已经尝试过了,但是它不会自动更新ID号。
Now, I've tried this, but it gives me this error: 现在,我已经尝试过了,但这给了我这个错误:
Still some errors with this update. 此更新仍有一些错误。 It's only one every few entries.
这只是每隔几个条目中的一个。
As a hack job you could try something like this: 作为黑客工作,您可以尝试如下操作:
=if(isblank(b2),a1,(if(b2=";9",c2,n/a)
It'll look at the B column and if its blank take the value of the cell above, if there is something there, it'll check for your anchor of ;9 and take the value of the opposing cell providing the value for all the one below it. 它将查看B列,如果其空白为上方单元格的值,则该位置是否有东西,它将检查您的; 9的锚点,并获取相对单元格的值,从而为所有下面的一个。
I'm not sure weather its important to keep the cell blank in column A next to the anchor, if it is, just reference everything a cell higher like so: 我不确定将锚点旁边的A列中的单元格保留为空白是否重要,如果是的话,只需引用较高位置的所有单元格,如下所示:
In A2: 在A2中:
=if(isblank(b1),A1,(if(b1=";9",c1,n/a)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.