<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Label expression formula question in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122982#M1613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make this more clear I need to extract everything to the right of the rihjt most space. Becasue some roads are 1E or 1S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 15:06:18 GMT</pubDate>
    <dc:creator>QuinnMcCarthy</dc:creator>
    <dc:date>2012-10-26T15:06:18Z</dc:date>
    <item>
      <title>Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122981#M1612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;using vb script is there a way to extract the number 1 from a field in the attribute table that has 'County Road 1'? I hope that is not confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Koochiching County&amp;nbsp; MN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 14:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122981#M1612</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-10-26T14:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122982#M1613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make this more clear I need to extract everything to the right of the rihjt most space. Becasue some roads are 1E or 1S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 15:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122982#M1613</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-10-26T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122983#M1614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quinn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you just want to remove the number 1 when the label is shown, if so use the replace function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( [Road_Name] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Not IsNull([Road_Name]) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; NewStr = Replace([Road_Name]," 1E","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; NewStr = Replace(NewStr," 1S","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FindLabel = NewStr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 15:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122983#M1614</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-26T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122984#M1615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To make this more clear I need to extract everything to the right of the rihjt most space. Becasue some roads are 1E or 1S.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Quinn&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are always just 1 or 2 characters at the end of the value with a leading white space, in VB Script you can use the Right function with the LTrim function to get the last non-white space character or characters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LTrim(Rigth(myFieldValue, 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get all of the characters to the left of the last 1 or 2 characters excluding a trailing white space use the Left Function, the Len function and the RTrim function as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RTrim(Left(myFieldValue, Len(myFieldValue) - 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of these are simple label expressions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2012 15:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122984#M1615</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-10-27T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122985#M1616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Richard and Anthony. I will give them a try. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think Richards answer might be what I am looking for. We will see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 13:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122985#M1616</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-10-29T13:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122986#M1617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quinn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only problem I see that could occur with Richards suggestion is that all roads will have to end with 1E or 1S otherwise you will cut the last two characters off the name,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 20:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122986#M1617</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-29T20:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122987#M1618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the Split function to put the words into an array and just retrieve the last item in the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Function FindLabel ( [Road_Name] )
&amp;nbsp; If Not IsNull([Road_Name]) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrString = Split([Road_Name])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = arrString(UBound(arrString))
&amp;nbsp; End If
End Function
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122987#M1618</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T07:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Label expression formula question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122988#M1619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quinn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I think I missed understood what you are trying to achieve, I read it that you have road names which end in 1E or 1S and you wanted to remove them on your labels, i.e:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Pinewood Road 1E' would be just 'Pinewood Road'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want everything right of your last space in the attribute value use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if InStrRev(txt," ") &amp;gt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;right([Road_Name],len([Road_Name]) - InStrRev([Road_Name]," "))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;everything left of your last space use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if InStrRev(txt," ") &amp;gt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;left([Road_Name],InStrRev([Road_Name]," "))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression-formula-question/m-p/122988#M1619</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-31T16:30:24Z</dc:date>
    </item>
  </channel>
</rss>

