<?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: adding a number to text problem in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82496#M33902</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/40557"&gt;@OskarJennische&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You can use an old padding trick to accomplish this where there is no padding or formatting functions available.. With the following formula:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Left([number],2) &amp;amp; Right("0000000" &amp;amp; ToNumber(Right([number],8))+1,8)​&lt;/CODE&gt;&lt;/PRE&gt;
What it does is:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;grabs the first 2 letters (I know you hardcoded the "AB", I just made it a little more dynamic)&lt;/LI&gt;
&lt;LI&gt;grabs the last 8 digits, converts it to a number and adds 1 to it (as you did)&lt;/LI&gt;
&lt;LI&gt;concatenates 7 zeros to the start of your new number&lt;/LI&gt;
&lt;LI&gt;grabs the last 8 digits removing extraneous zeros&lt;/LI&gt;
&lt;LI&gt;concatenates the 2 letters to the zero padded new number&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Jul 2022 11:58:00 GMT</pubDate>
    <dc:creator>MichealCharron</dc:creator>
    <dc:date>2022-07-06T11:58:00Z</dc:date>
    <item>
      <title>adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82495#M33901</link>
      <description>hi. i have a string that looks like "AB00000001" that i want to add a +1 to.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by using Trim("AB" &amp;amp; ToNumber(Right[number];8))+1) i get AB2, but i miss all the zeros in between. how do i solve this? i have been trying to solve this for a very long time..&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;thanks in advice&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;oskar jennische&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 11:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82495#M33901</guid>
      <dc:creator>oskarjennische1</dc:creator>
      <dc:date>2022-07-06T11:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82496#M33902</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/40557"&gt;@OskarJennische&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You can use an old padding trick to accomplish this where there is no padding or formatting functions available.. With the following formula:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Left([number],2) &amp;amp; Right("0000000" &amp;amp; ToNumber(Right([number],8))+1,8)​&lt;/CODE&gt;&lt;/PRE&gt;
What it does is:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;grabs the first 2 letters (I know you hardcoded the "AB", I just made it a little more dynamic)&lt;/LI&gt;
&lt;LI&gt;grabs the last 8 digits, converts it to a number and adds 1 to it (as you did)&lt;/LI&gt;
&lt;LI&gt;concatenates 7 zeros to the start of your new number&lt;/LI&gt;
&lt;LI&gt;grabs the last 8 digits removing extraneous zeros&lt;/LI&gt;
&lt;LI&gt;concatenates the 2 letters to the zero padded new number&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 11:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82496#M33902</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-07-06T11:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82497#M33903</link>
      <description>Can it happen that you exceed the number 9 and with the next calculation loose one zero and etc. ?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Fidos&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82497#M33903</guid>
      <dc:creator>AndrzejFidos</dc:creator>
      <dc:date>2022-07-06T12:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82498#M33904</link>
      <description>thanks. i tried this but i get this error: "incorrect number of parameters to funktion 'Right'"&lt;BR /&gt;it seems like it is complaining on the outher right function&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;oskar jennische&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82498#M33904</guid>
      <dc:creator>oskarjennische1</dc:creator>
      <dc:date>2022-07-06T12:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82499#M33905</link>
      <description>yes, that will happen. the program&amp;nbsp; will add +1 for each customer that is created. it will be upwards of hundreds of customers added at some later point&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;oskar jennische&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82499#M33905</guid>
      <dc:creator>oskarjennische1</dc:creator>
      <dc:date>2022-07-06T12:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82500#M33906</link>
      <description>I'm not getting an error.&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28470.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28598i05C0194C8159312E/image-size/large?v=v2&amp;amp;px=999" role="button" title="28470.png" alt="28470.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82500#M33906</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-07-06T12:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82501#M33907</link>
      <description>&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;i found the problem. i cannot use comma sign "," i need to be using ";" for it to work&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28472.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28602iF4979B62851CEED8/image-size/large?v=v2&amp;amp;px=999" role="button" title="28472.png" alt="28472.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;oskar jennische&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 20:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82501#M33907</guid>
      <dc:creator>oskarjennische1</dc:creator>
      <dc:date>2022-07-06T20:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: adding a number to text problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82502#M33908</link>
      <description>Depending on local settings you need to either use ";" or ","&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Fidos&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 20:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/adding-a-number-to-text-problem/m-p/82502#M33908</guid>
      <dc:creator>AndrzejFidos</dc:creator>
      <dc:date>2022-07-06T20:06:00Z</dc:date>
    </item>
  </channel>
</rss>

