<?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 Custom Formula to Find a Specific Character in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400149#M73597</link>
    <description>&lt;P&gt;I have an account field that is always 7 digits long.&amp;nbsp; I need to find where the 5th digit is a 7.&amp;nbsp; The number 7 could be anywhere in the account field, but I don't want to capture those.&amp;nbsp; So the StartsWith, EndsWith and RegEx won't work for me.&amp;nbsp; Does anyone have any other suggestions for how to locate these accounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the 4 examples below, I would only want to return the first 3 accounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4300701&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4300755&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4040788&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4470000&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 13:21:52 GMT</pubDate>
    <dc:creator>lwolfram</dc:creator>
    <dc:date>2019-04-09T13:21:52Z</dc:date>
    <item>
      <title>Custom Formula to Find a Specific Character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400149#M73597</link>
      <description>&lt;P&gt;I have an account field that is always 7 digits long.&amp;nbsp; I need to find where the 5th digit is a 7.&amp;nbsp; The number 7 could be anywhere in the account field, but I don't want to capture those.&amp;nbsp; So the StartsWith, EndsWith and RegEx won't work for me.&amp;nbsp; Does anyone have any other suggestions for how to locate these accounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the 4 examples below, I would only want to return the first 3 accounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4300701&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4300755&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4040788&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4470000&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 13:21:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400149#M73597</guid>
      <dc:creator>lwolfram</dc:creator>
      <dc:date>2019-04-09T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formula to Find a Specific Character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400159#M73600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/59529"&gt;@lwolfram&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without RegEx, this expression could be used in a Formula tool:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF Right(left(tostring([Account]),5),1)=='7' THEN 'true' ELSE 'false' ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 13:32:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400159#M73600</guid>
      <dc:creator>CharlieS</dc:creator>
      <dc:date>2019-04-09T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formula to Find a Specific Character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400160#M73601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/59529"&gt;@lwolfram&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF Substring(ToString([Field1]),4,1) = "7" THEN "Yes" ELSE "No" ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Substring function can get a start and a length to find strings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 13:33:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400160#M73601</guid>
      <dc:creator>Thableaus</dc:creator>
      <dc:date>2019-04-09T13:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formula to Find a Specific Character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400190#M73608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/59529"&gt;@lwolfram&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just cause I've been trying to use the Regex hammer on everything that looks like a nail recently and also it's fun to do things differently from&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/49596"&gt;@Thableaus&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4736"&gt;@CharlieS&lt;/a&gt;&amp;nbsp;(&lt;EM&gt;But don't tell them that&lt;/EM&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;REGEX_Match(tostring([Field1]), "\d{4}7\d{2}")&lt;/PRE&gt;&lt;P&gt;This matches a "7" as the 5 character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="regex7.png" style="width: 157px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/60265i97D23E03FF870A7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="regex7.png" alt="regex7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:30:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400190#M73608</guid>
      <dc:creator>danilang</dc:creator>
      <dc:date>2019-04-09T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Formula to Find a Specific Character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400345#M73635</link>
      <description>&lt;P&gt;Thank you all!&amp;nbsp; Those are all great Solutions!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 19:03:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Custom-Formula-to-Find-a-Specific-Character/m-p/400345#M73635</guid>
      <dc:creator>lwolfram</dc:creator>
      <dc:date>2019-04-09T19:03:40Z</dc:date>
    </item>
  </channel>
</rss>

