<?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: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel) in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2821#M1610</link>
    <description>&lt;P&gt;I have a similar use case and would like to use a formula to set the new value.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 17:59:48 GMT</pubDate>
    <dc:creator>carilovorn</dc:creator>
    <dc:date>2025-07-31T17:59:48Z</dc:date>
    <item>
      <title>Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2820#M1609</link>
      <description>&lt;P&gt;We’re working on a DemandTools job where we want to modify a value that looks like this: "$9.09 CAD". Specifically, we want to remove the dollar amount and retain only the currency code—so for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt; "$9.09 CAD"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Desired Output:&lt;/STRONG&gt; "CAD"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We do &lt;STRONG&gt;not&lt;/STRONG&gt; want to do this in Excel before importing—we want the transformation to happen as part of the DemandTools job itself. We want to transform the data in the excel file and then update the CurrencyISOCode with the accepted format after the excel file data for that field has been changed to a supported value (such as CAD).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use a formula within DemandTools (such as in the Transform or Modify module) to accomplish this kind of string manipulation?&lt;/P&gt;&lt;P&gt;Also, can you clarify:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Are formulas in DemandTools only intended for creating new values based on Salesforce fields and data?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or can formula logic be applied to values coming from an Excel file as part of a DemandTools job (for example, to clean or standardize values before import/match)?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We’d appreciate guidance or examples if this is possible.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 13:21:18 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2820#M1609</guid>
      <dc:creator>jcrandall</dc:creator>
      <dc:date>2025-07-31T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2821#M1610</link>
      <description>&lt;P&gt;I have a similar use case and would like to use a formula to set the new value.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 17:59:48 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2821#M1610</guid>
      <dc:creator>carilovorn</dc:creator>
      <dc:date>2025-07-31T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2825#M1611</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/2509"&gt;@jcrandall&lt;/a&gt;&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/52"&gt;@carilovorn&lt;/a&gt;&amp;nbsp;- This is a great use case for a relatively new feature, &lt;A href="https://knowledge.validity.com/s/articles/Global-Formula-Templates?language=en_US" target="_self"&gt;Formula Templates&lt;/A&gt;. In Import, once you've mapped your corresponding source file fields to your desired Salesforce fields, you can transform the data when importing using one of the out-of-the-box &lt;A href="https://knowledge.validity.com/s/articles/Import-Transform-Formulas?language=en_US" target="_self"&gt;transform formulas&lt;/A&gt; or utilize a Formula Template that opens the door to our entire &lt;A href="https://knowledge.validity.com/s/articles/DemandTools-Modify-Formula-Dictionary?language=en_US" target="_self"&gt;Pre-Built Formula Dictionary&lt;/A&gt; as well as the ability to build custom formulas. We've seen a myraid of use cases for this, everything from complex functions that serve as a make-shift VLOOKUP to simple substitutions, replacing one value for another. As you progress to the preview screen in Import, you will be able to see your transformed spreadsheet data prior to executing anything in Salesforce. To clarify, this will NOT change the original source file, the process only transforms your data to bring it into Salesforce through DemandTools.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/2509"&gt;@jcrandall&lt;/a&gt;&amp;nbsp;- For your instace, you'll want to utilize&amp;nbsp;&lt;SPAN&gt;RegExReplace(${CurrencyIsoCode}, "[^A-Za-z]+", "") -CurrencyIsoCode representing whatever the field is you are wanting to transform. &lt;A href="https://knowledge.validity.com/s/articles/Modify-Using-Formulas?language=en_US" target="_self"&gt;&lt;EM&gt;Using Formulas Article&lt;/EM&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pugs_Validity_0-1753984949942.png" style="width: 999px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/751iA1342FCB0A794B1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pugs_Validity_0-1753984949942.png" alt="Pugs_Validity_0-1753984949942.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pugs_Validity_0-1753986265538.png" style="width: 999px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/752i71E9C0A553A2D067/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pugs_Validity_0-1753986265538.png" alt="Pugs_Validity_0-1753986265538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pugs_Validity_1-1753986396263.png" style="width: 999px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/753iFB71747E4732EB93/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pugs_Validity_1-1753986396263.png" alt="Pugs_Validity_1-1753986396263.png" /&gt;&lt;/span&gt;&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>Thu, 31 Jul 2025 18:46:31 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2825#M1611</guid>
      <dc:creator>Pugs_Validity</dc:creator>
      <dc:date>2025-07-31T18:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2827#M1613</link>
      <description>&lt;P&gt;We have over six million contacts we want to update, doing this with a file is not feasible.&amp;nbsp; Is there a way to use the Modify or Tune modules to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 21:01:36 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2827#M1613</guid>
      <dc:creator>carilovorn</dc:creator>
      <dc:date>2025-08-01T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2836#M1615</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/52"&gt;@carilovorn&lt;/a&gt;&amp;nbsp;- Absolutley! &lt;A href="https://knowledge.validity.com/s/articles/Modify-Using-Formulas?language=en_US" target="_self"&gt;Using Formulas in Modify&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are you looking to perform the same data transformation or something different?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 20:42:29 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2836#M1615</guid>
      <dc:creator>Pugs_Validity</dc:creator>
      <dc:date>2025-08-04T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2843#M1619</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/1010"&gt;@Pugs_Validity&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for your reply, super helpful. Using the original example, we actually need the formula to do the reverse however, and need to remove the CAD, leaving just 9.90 (ideally without $). Is there an alternate formula that can achieve this? Research was suggesting&amp;nbsp;&lt;SPAN&gt;string.gsub but I don't see that in the list of supported formulas. Any other ideas? Thanks! CC:&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/2509"&gt;@jcrandall&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 02:39:05 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2843#M1619</guid>
      <dc:creator>beavery</dc:creator>
      <dc:date>2025-08-07T02:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Formula in a DemandTools Job to Modify a Value (Not in Excel)</title>
      <link>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2851#M1624</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/2523"&gt;@beavery&lt;/a&gt;&amp;nbsp;- My pleasure! A slight tweak to the aforementioned Regex should solve this for you.&lt;/P&gt;
&lt;P&gt;For your usecase, you'll want to use:&amp;nbsp;&lt;SPAN&gt;RegExReplace(${CurrencyIsoCode}, "[a-zA-Z$]+", "")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pugs_Validity_0-1754688294283.png" style="width: 999px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/764iBA5A9D945058D311/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pugs_Validity_0-1754688294283.png" alt="Pugs_Validity_0-1754688294283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 21:25:26 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/using-a-formula-in-a-demandtools-job-to-modify-a-value-not-in/m-p/2851#M1624</guid>
      <dc:creator>Pugs_Validity</dc:creator>
      <dc:date>2025-08-08T21:25:26Z</dc:date>
    </item>
  </channel>
</rss>

