<?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 Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27 in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630298#M143293</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Anyone know how to convert a letter to a number in Alteryx&lt;/DIV&gt;&lt;DIV&gt;e.g. A=1, B=2,&amp;nbsp;Z=26, AA=27 etc?&lt;/DIV&gt;&lt;DIV&gt;In excel the formula is =Column(Indirect(String&amp;amp;1))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Damiano&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Sep 2020 10:38:30 GMT</pubDate>
    <dc:creator>DS80845</dc:creator>
    <dc:date>2020-09-08T10:38:30Z</dc:date>
    <item>
      <title>Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630298#M143293</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Anyone know how to convert a letter to a number in Alteryx&lt;/DIV&gt;&lt;DIV&gt;e.g. A=1, B=2,&amp;nbsp;Z=26, AA=27 etc?&lt;/DIV&gt;&lt;DIV&gt;In excel the formula is =Column(Indirect(String&amp;amp;1))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Damiano&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:38:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630298#M143293</guid>
      <dc:creator>DS80845</dc:creator>
      <dc:date>2020-09-08T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630332#M143309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/186238"&gt;@DS80845&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you were only looking to convert individual letters you could use the function CharToInt() in order to get the unicode number of the character. You could then loop over the string to get the number for each character and then construct a number that represents that string.&amp;nbsp;However, it will not do exactly what you asked below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you say you are looking to call AA 27 I put the following workflow together.&amp;nbsp;You could use this to build a lookup table and join on the Letter field to get the ID number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add additional sets of tools to expand the tool out to 4 or more characters. The dataset will get large quickly so if you need particularly long strings this may not be a viable path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:11:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630332#M143309</guid>
      <dc:creator>MichaelLaRose</dc:creator>
      <dc:date>2020-09-08T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630339#M143313</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/6039"&gt;@MichaelLaRose&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping for just a formula but that would do too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for helping! Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Damiano&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:32:03 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630339#M143313</guid>
      <dc:creator>DS80845</dc:creator>
      <dc:date>2020-09-08T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630396#M143330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/186238"&gt;@DS80845&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to do it as a single expression then try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(CharToInt(Substring(PadLeft([Letter], 3, CharFromInt(64)), 2, 1)) - 64) + 
(CharToInt(Substring(PadLeft([Letter], 3, CharFromInt(64)), 1, 1)) - 64) * 26 +
(CharToInt(Substring(PadLeft([Letter], 3, CharFromInt(64)), 0, 1)) - 64) * 26 * 26&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have attached a quick sample based on&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/6039"&gt;@MichaelLaRose&lt;/a&gt;&amp;nbsp;work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 14:33:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630396#M143330</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2020-09-08T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630504#M143351</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3554"&gt;@jdunkerley79&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brilliant!! Thanks a lot!!!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 16:01:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/630504#M143351</guid>
      <dc:creator>DS80845</dc:creator>
      <dc:date>2020-09-08T16:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/981950#M242819</link>
      <description>&lt;P&gt;How about the reverse i have numbers i want to convert Letter&lt;/P&gt;&lt;P&gt;A-Z = 0-25&lt;/P&gt;&lt;P&gt;AA = 26&lt;/P&gt;&lt;P&gt;AB = 27&lt;/P&gt;&lt;P&gt;AC = 28...etc?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 17:33:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/981950#M242819</guid>
      <dc:creator>DataGuy77</dc:creator>
      <dc:date>2022-08-10T17:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula - Convert a letter to a number e.g. A=1,B=2, Z=26, AA=27</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/1031740#M255113</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/60820"&gt;@DataGuy77&lt;/a&gt;&amp;nbsp; - I had a use case for this so ended up creating something that would revert the digits based on the answer given by&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3554"&gt;@jdunkerley79&lt;/a&gt;. The formula itself probably isn't the most condensed possible, but it is functional. It used modulo and some other basic math to get the conversions by letter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I included two options, one that keeps things relatively simple, and then a nested version for the return col and all previously used data in the event you just want to use one more complex formula, although the simplified version is definitely more readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to use if statements to account for Z's (modulo would return a zero for them) and at the end where the value is 0, the char from int tool returns an&amp;nbsp;@ symbol for the value of 64, so I just replace it with a blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since your digits are starting at zero, you should just need to add 1 to your values for it to work within this. A is 1, AA is 27 etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 23:37:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Convert-a-letter-to-a-number-e-g-A-1-B-2-Z-26-AA-27/m-p/1031740#M255113</guid>
      <dc:creator>dsandmann</dc:creator>
      <dc:date>2022-11-11T23:37:04Z</dc:date>
    </item>
  </channel>
</rss>

