Select to view content in your preferred language

Field Calculator: extract single cell based on it's OBJECTID?

1240
2
01-13-2017 11:56 AM
MichelleJean
Deactivated User

Is it possible to copy a single value inside a field based on it's OBJECTID from another field? Some sort of if-then-else logic?

For example I would like to copy the value in the Area field corresponding to OBJECTID 3. And to have it in the first row in the Level field with the rest of it's rows remaining to 'Null'.

I am using ArcGIS Pro 1.4 with Python 3.5.

Thank you !

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

can you elaborate a bit more as to what you are trying to accomplish? That example an its solution would be difficult to generalize... my quick solution would simply edit the table and put the answer in... obviously that is not what you are doing and I suspect that there is some sort of pattern you wish to follow

LukeWebb
Frequent Contributor

Your question seems to be something that is very easy to solve in python. 

How do we know that ObjectID 3 corresponds to the 1st record? Without knowing the relationships in your data we are unable to assist.

0 Kudos