<?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: JMP equivalent of Excel's SUMPRODUCT function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730127#M91292</link>
    <description>&lt;P&gt;Your guess was close.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum( :Probability * :Value, :Set )&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Mar 2024 01:15:55 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-03-06T01:15:55Z</dc:date>
    <item>
      <title>JMP equivalent of Excel's SUMPRODUCT function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730114#M91290</link>
      <description>&lt;P&gt;Is there a JMP equivalent of Excel's SUMPRODUCT function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g., suppose I have a table like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Row&lt;/TD&gt;&lt;TD&gt;Set&lt;/TD&gt;&lt;TD&gt;Run&lt;/TD&gt;&lt;TD&gt;Probability&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Weighted Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;7.5&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.8&lt;/TD&gt;&lt;TD&gt;14.2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0.35&lt;/TD&gt;&lt;TD&gt;18.1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.65&lt;/TD&gt;&lt;TD&gt;25.9&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I would like to add a function to the "Weighted Value" column that would populate Rows 1 and 2 with (0.2*7.5+0.8*14.2), and Rows 3 and 4 with (0.35*18.1+0.65*25.9).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine it would look something like:&amp;nbsp; SUMPRODUCT( {&amp;nbsp;:Probability, :Value }, :Set )&amp;nbsp; &amp;nbsp;... where :Probability and :Value are the columns to be multiplied, then added, grouping on :Set.&amp;nbsp; But obviously that's not a function in JMP -- is there something similar?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:22:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730114#M91290</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-03-05T23:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's SUMPRODUCT function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730127#M91292</link>
      <description>&lt;P&gt;Your guess was close.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum( :Probability * :Value, :Set )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2024 01:15:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730127#M91292</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-06T01:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's SUMPRODUCT function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730354#M91310</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4160"&gt;@shannon_conners&lt;/a&gt;, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; the doc and scripting index should capture some of these excel translations. This one should have an explanation like&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;you can use &lt;STRONG&gt;&lt;EM&gt;any&lt;/EM&gt;&lt;/STRONG&gt; expression for the first parameter. For example, you can use 1 to count how many by-values, or a product of two columns. Or just a single column. Whatever it is, it will be added up until the by-value changes. The excel SumProduct function becomes ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By including the relevant words, people can look it up. The doc was not clear that the first parameter did not need to be a simple column name (five examples, all use :height for the first parameter).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 16:20:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-SUMPRODUCT-function/m-p/730354#M91310</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-03-06T16:20:05Z</dc:date>
    </item>
  </channel>
</rss>

