AnsweredAssumed Answered

How to remove first two and the last two characters from each label in Arcmap?

Question asked by GregBrown1993 on Feb 7, 2018
Latest reply on Feb 7, 2018 by Dan_Patterson

Hello. My too long labels take up too much space in regard to the small counties polygons.

I want to remove first two and the last two characters from each single label.

 

Currently the labels on the map look like this:

PL1607000

PL1816000

LV801200

LT029900

EE700000

etc.

 

Because in each single label the first two characters are two-letter country code, and the last two characters always two zeros, to make map more clean I want my labels like this:

 

16070

18160

8012

0299

7000

etc.

 

I use Maplex Label Engine. My label field is CTYCode, What expression should I type in Label expression dialog box?

Is it possible to also make stacked labels from this labels? I want to the first two characters were at the top, and the rest at the bottom. Like this:

 

16
070

 

18
160

 

80
12

 

02
99

 

70
00

 

etc.

If you want help me please add here two different expressions. With and without stacking labels, I do not know about programming at all and I would not know how to change the expression

Greg

Outcomes