<?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: How can count the number of characters in a cell? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344524#M59427</link>
    <description>&lt;P&gt;If I understand correctly what you want to do (calculate character count for the first character in name) you could do it with something like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get length of the name -&amp;gt;&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Length(:name)&lt;/CODE&gt;&lt;/LI&gt;&lt;LI&gt;Remove first character from the name&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;CODE class=" language-jsl"&gt;Substitute(:name, Left(:name, 1), "")&lt;/CODE&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Get length of the string where first character is removed -&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;CODE class=" language-jsl"&gt;Length(previous part)&lt;/CODE&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;And finally calculate difference between these two strings&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Length(:name) - Length(Substitute(:name, Left(:name, 1), ""))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 09:52:37 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2020-12-28T09:52:37Z</dc:date>
    <item>
      <title>How can count the number of characters in a cell?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344497#M59426</link>
      <description>&lt;P&gt;For example, how to count the number of line names with the first character of the name?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-12-28_16-32-43.png" style="width: 421px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29110iB425C007D034A566/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-28_16-32-43.png" alt="2020-12-28_16-32-43.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:01:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344497#M59426</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T22:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can count the number of characters in a cell?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344524#M59427</link>
      <description>&lt;P&gt;If I understand correctly what you want to do (calculate character count for the first character in name) you could do it with something like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get length of the name -&amp;gt;&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Length(:name)&lt;/CODE&gt;&lt;/LI&gt;&lt;LI&gt;Remove first character from the name&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;CODE class=" language-jsl"&gt;Substitute(:name, Left(:name, 1), "")&lt;/CODE&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Get length of the string where first character is removed -&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;CODE class=" language-jsl"&gt;Length(previous part)&lt;/CODE&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;And finally calculate difference between these two strings&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Length(:name) - Length(Substitute(:name, Left(:name, 1), ""))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 09:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344524#M59427</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2020-12-28T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can count the number of characters in a cell?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344527#M59429</link>
      <description>&lt;P&gt;Clever! (And comment your code if you use this, the next person will appreciate explaining what you are doing!)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 12:05:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-count-the-number-of-characters-in-a-cell/m-p/344527#M59429</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-12-28T12:05:26Z</dc:date>
    </item>
  </channel>
</rss>

