By rakesh reddy


2019-03-14 16:36:54 8 Comments

I have an address field containing the following text: "64,ramkoti,hyderabad,500070"

I need to copy hyderabad to another field.

What would be the code used in the field calculator tool to achieve this?

1 comments

@BERA 2019-03-14 16:42:54

Use python parser and split:

def splitit(somefield):
    return somefield.split(',')[2] #2 is index for third word

Call with:

splitit(!yourfieldnamehere!)

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] Multiple Field Update on comma separated values

2 Answered Questions

2 Answered Questions

2 Answered Questions

[SOLVED] Finding and copying text with Field Calculator in ArcGIS for Desktop?

1 Answered Questions

0 Answered Questions

1 Answered Questions

4 Answered Questions

[SOLVED] Auto populate field with text using field calculator if/then

1 Answered Questions

[SOLVED] ArcMap Calculate Field..if "text" in !Field!

Sponsored Content