I have some fields which contain numbers, when I added them as labels, it shows on the map as numbers. Is there any way to add header name of the field with the number?

see this http://rghost.net/8LftSZcc8/image.png

  • 1
    Use expression for label 'officer no' & [oficer_no] – FelixIP Sep 11 '15 at 8:39
  • thank you @Alex Tereshenkov and FelixIP, i used expression for label and it's working fine, but i want to add sbace between officer_no word and numbers. <img src="rghost.net/8yJsfw6Xp/image.png" alt="see this"> – GIS Man Sep 11 '15 at 10:45
  • thank you very much @Alex, it's working fine with me now, many thanks – GIS Man Sep 14 '15 at 6:59

I don't think you can take the column name into the label directly. Your option is to either create a label typing the column name manually ("PetrolLeft" + ": " + [PetrolLeft]) or to use Python/Calculate Field tool to pre-calculate the column to values to include the column name (would be Officer_no: 4, Officer_no: 3 etc).

To have a space between the label's parts, you would use:

"officer_no" + " " + [officer_no]

Another option is to use arcpy in the Label Expression window :

def FindLabel ( ): 
  fields = arcpy.ListFields(r"C:\Data\2015\OperationalData.gdb\Positions_Mercator","PetrolL‌​eft") 
  return fields[0].name
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.