<?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 Examples: Using Formulas for Advanced Data Standardization in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/formula-examples-using-formulas-for-advanced-data/m-p/1485#M807</link>
    <description>&lt;P&gt;Huge thanks to everyone who attended today's training on Using Formulas for Advanced Data Standardization.&amp;nbsp;&amp;nbsp;Below are a few additional resources that were referenced during the training. Also, I am going to add a comment with samples of the formulas that I&amp;nbsp;reviewed during the session. Feel free to drop questions below if you have them!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989596657819-DemandTools-Modify-Formula-Dictionary" target="_blank" rel="noopener nofollow noreferrer"&gt;Modify Formula Dictionary&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://knowledge.validity.com/hc/en-us/articles/13915136062491-Using-Operators-in-Record-Selection-Criteria-#:~:text=Provides%20a%20mechanism%20for%20matching%20partial%20text%20strings%20and%20includes%20support%20for%20wildcards%20%25%20and%20_" target="_blank" rel="noopener nofollow noreferrer"&gt;Wildcard Documentation / Examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 17:26:57 GMT</pubDate>
    <dc:creator>AnthonyValidity</dc:creator>
    <dc:date>2023-11-14T17:26:57Z</dc:date>
    <item>
      <title>Formula Examples: Using Formulas for Advanced Data Standardization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/formula-examples-using-formulas-for-advanced-data/m-p/1485#M807</link>
      <description>&lt;P&gt;Huge thanks to everyone who attended today's training on Using Formulas for Advanced Data Standardization.&amp;nbsp;&amp;nbsp;Below are a few additional resources that were referenced during the training. Also, I am going to add a comment with samples of the formulas that I&amp;nbsp;reviewed during the session. Feel free to drop questions below if you have them!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989596657819-DemandTools-Modify-Formula-Dictionary" target="_blank" rel="noopener nofollow noreferrer"&gt;Modify Formula Dictionary&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://knowledge.validity.com/hc/en-us/articles/13915136062491-Using-Operators-in-Record-Selection-Criteria-#:~:text=Provides%20a%20mechanism%20for%20matching%20partial%20text%20strings%20and%20includes%20support%20for%20wildcards%20%25%20and%20_" target="_blank" rel="noopener nofollow noreferrer"&gt;Wildcard Documentation / Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:26:57 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/formula-examples-using-formulas-for-advanced-data/m-p/1485#M807</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-11-14T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Examples: Using Formulas for Advanced Data Standardization</title>
      <link>https://mycommunity.validity.com/t5/demandtools/formula-examples-using-formulas-for-advanced-data/m-p/1486#M808</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Modify Formulas covered in today's session:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4 id="toc-hId--159618174"&gt;I figured this one out!!!&amp;nbsp; I had to share it first.&amp;nbsp; The ability to remove all special characters from a field.&amp;nbsp; For this example it is a last name so I ignored spaces and hyphens.&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;RegExReplace(${LastName}, "[^a-zA-Z\s-]+","")&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--130989023"&gt;&lt;SPAN&gt;Better Way to Add Email Field from Contact to Account Website Field&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;AllTextAfterChar(${Email}, "@")&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--102359872"&gt;&lt;SPAN&gt;Clear Out Zip Codes with Less than Five Characters.&amp;nbsp; Look for Zip Codes with 9 Characters and No Hyphen, Format Those Correctly Ex:&amp;nbsp; xxxxx-xxxx&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;IF(LEN(${MailingPostalCode})&amp;lt;5,ZipCodeClean(${MailingPostalCode}),IF(AND(LEN(${MailingPostalCode})=9,${MailingPostalCode}&amp;lt;&amp;gt;"-"),CONCATENATE(MID(${MailingPostalCode}, 1, 5),"-", MID(${MailingPostalCode}, 6, 4)),${MailingPostalCode}))&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--73730721"&gt;&lt;SPAN&gt;Keep the First Five Digits of a Zip Code&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;RegExMatch(${OtherPostalCode}, "\d{5}")&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--45101570"&gt;&lt;SPAN&gt;If the Alternate Email is the Same as the Primary Email, Clear Out the Alternate Email Field&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;IF(${Email}=${Alternate_Email__c}, "",${Alternate_Email__c})&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--16472419"&gt;&lt;SPAN&gt;Look for Keywords in a Title of a Contact and if There is a Match, Change the Department Field&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;IF(ISNUMBER(SEARCH("Program",${Title})),"Product Management",IF(ISNUMBER(SEARCH("SDR",${Title})),"Marketing",IF(ISNUMBER(SEARCH("",${Title})),"Unknown",${Department})))&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId-12156732"&gt;&lt;SPAN&gt;Replace Most/All Accented Letters with Their English Letter Equivalents&lt;/SPAN&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE( ${Name},"ā","a"),"à","a"),"á","a"),"â","a"),"ã","a"),"ä","a"),"å","a"),"è","e"),"é","e"),"ê","e"),"ë","e"),"ç","c"),"ì","i"),"í","i"),"î","i"),"ï","i"),"ð","th"),"ñ","n"),"ò","o"),"ó","o"),"ô","o"),"õ","o"),"ö","o"),"ù","u"),"ú","u"),"û","u"),"ü","u"),"ý","y"),"ÿ","y"),"š","s"),"Ž","z")&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Validate UK Zip Codes (Don't process but export list)&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;RegExMatch( ${BillingPostalCode} , "^[A-Z]{1,2}[0-9][A-Z0-9]? ?[0-9][A-Z]{2}$")&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:30:55 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/formula-examples-using-formulas-for-advanced-data/m-p/1486#M808</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-11-14T17:30:55Z</dc:date>
    </item>
  </channel>
</rss>

