<?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 JMP equivalent of Excel's COUNTIF function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783445#M96776</link>
    <description>&lt;P&gt;I'm trying to mimic this Excel-type behavior:&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;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;failureType&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;numFailuresThisType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;f1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;f2&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a3)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;f1&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a4)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;f1&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a5)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;f2&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a6)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... in JMP.&amp;nbsp; Is this possible as a column formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried "Col Sum( :failureType == :failureType[ Row() ] )" but that doesn't work and I don't understand why.&amp;nbsp; Sometimes ":ColumnName" returns a single value, and other times it returns the entire column's-worth of entries and auto-loops over them.&amp;nbsp; Is there a way to tell which it will do, perhaps from the Scripting Index?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 14:42:05 GMT</pubDate>
    <dc:creator>BHarris</dc:creator>
    <dc:date>2024-08-22T14:42:05Z</dc:date>
    <item>
      <title>JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783445#M96776</link>
      <description>&lt;P&gt;I'm trying to mimic this Excel-type behavior:&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;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;failureType&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;numFailuresThisType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;f1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;f2&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a3)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;f1&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a4)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;f1&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a5)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;f2&lt;/TD&gt;&lt;TD&gt;=countif($a$2:$a$999,a6)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... in JMP.&amp;nbsp; Is this possible as a column formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried "Col Sum( :failureType == :failureType[ Row() ] )" but that doesn't work and I don't understand why.&amp;nbsp; Sometimes ":ColumnName" returns a single value, and other times it returns the entire column's-worth of entries and auto-loops over them.&amp;nbsp; Is there a way to tell which it will do, perhaps from the Scripting Index?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:42:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783445#M96776</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-08-22T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783466#M96777</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe Col Sum of 1 by failuretype?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(1, :FailureType)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here Column 6 has formula Col Sum(1, :age)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1724337733694.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67421i8DCB309B6A050CF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1724337733694.png" alt="jthi_0-1724337733694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:44:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783466#M96777</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-22T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783467#M96778</link>
      <description>&lt;P&gt;Yep, that'll probably work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why didn't my Col Sum(...) work?&amp;nbsp; Is Row() also being updated internally at each step?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:54:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783467#M96778</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-08-22T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783469#M96779</link>
      <description>&lt;P&gt;Create column with just Row() and you will see what it returns&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1724339067129.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67422i7600E62D870AB9ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1724339067129.png" alt="jthi_0-1724339067129.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can do the same thing for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:failureType[Row()]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:failureType&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and finally for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:failureType == :failureType[Row()]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to see what you will end up with (you are comparing current row value of failure type to current row value of failure type with just different syntax, which is almost always 1).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:07:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783469#M96779</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-22T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783484#M96780</link>
      <description>&lt;P&gt;Other option is Col Number()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Number(:FailureType, :FailureType)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:40:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783484#M96780</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-22T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783486#M96781</link>
      <description>&lt;P&gt;These replies directly answered your question about a function that works like Excel. You can also use Table &amp;gt; Summary, Analyze &amp;gt; Tabulate, and Graph &amp;gt; Graph Builder for summaries without using a formula column if that is where you are headed.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:36:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783486#M96781</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2024-08-22T16:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783500#M96784</link>
      <description>&lt;P&gt;This formula seems to work as well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
n1 = :failureType;
Col Sum( :failureType == n1 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It seems that within the Col Sum function it is expecting to iterate over lists, similar to doing a for loop in python over zipped variables, but in the 2nd line, it's just getting the value of :failureType from the current row.&amp;nbsp; These kinds of implicit behaviors are incredibly helpful/useful, but only if the user understands how they work (which I would like to).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783500#M96784</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-08-22T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783505#M96786</link>
      <description>&lt;P&gt;Wow. Kind of surprising. I didn't expect it to work this way.&lt;BR /&gt;&lt;BR /&gt;How did you find out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Big Class.jmp" );

New Column( "ColSum1",
	Formula(
		Col Sum( :age == 12 );
	)
);

New Column( "ColSum2",
	Formula(
		twelve = 12;
		Col Sum( :age == twelve );
	)
);

New Column( "ColSum3",
	Formula(
		myAGE = :age;
		Col Sum( :age == myAGE );
	)
);

New Column( "ColSum4",
	Formula(
		myAGE = :age;
		myname= :name;
		Col Sum( show(myname,myAge,:name,:age,"-");:age == myAGE );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:18:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783505#M96786</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-22T19:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783506#M96787</link>
      <description>&lt;P&gt;related post with some parallels: &lt;LI-MESSAGE title="Countif equivalent?" uid="583904" url="https://community.jmp.com/t5/Discussions/Countif-equivalent/m-p/583904#U583904" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;but without &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12313"&gt;@BHarris&lt;/a&gt; 's magic : )&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:47:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783506#M96787</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-22T18:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783513#M96791</link>
      <description>&lt;P&gt;Even though it looks like it does work, I wouldn't use it (I think it should be fine if it required you to have :failureType as byvar). I would think that it is some sort of unintended behavior (even more than using 1 which shouldn't be allowed either according to JMP support, but let us hope that JMP never breaks that &lt;BR /&gt;&lt;LI-MESSAGE title="Make using formula expressions in Set Each Value and using expressions as first argument in Col statistical formulas supported behaviour" uid="666966" url="https://community.jmp.com/t5/JMP-Wish-List/Make-using-formula-expressions-in-Set-Each-Value-and-using/m-p/666966#U666966" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could report it to JMP Support and try to see if they can give technical explanation about why it works like it does. You can also try using other comparisons in similar manner&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1724352914250.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67435iC0F9D940DC334B90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1724352914250.png" alt="jthi_1-1724352914250.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:57:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783513#M96791</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-22T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783514#M96792</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;It's probably not as magical as it seems -- the first argument to Col Sum is an expression, and in this case since n1 is precalculated (likely being set to the value from the current row due to the context), and == expressions seem to return 1 or 0, therefore it's simply adding up a bunch of 1s where the column value equals n1 and 0 otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's a little magical to me is that sometimes in column formulas, JMP will iterate over the rows in a column when entered as ":columnName" and other times it only pulls the value from that column in the current row.&amp;nbsp; This has been mysterious to me since the discussion on that other thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing the Col Number() function is the most appropriate one to use in this case, probably caches more cleanly than this does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frankly, I didn't know Col Number() existed.&amp;nbsp; I spent most of my adult life in Excel, so I do wish there was a mapping of Excel functions to JMP functions somewhere.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:18:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783514#M96792</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-08-22T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783515#M96793</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "ColSum4",
	Formula(
		myAGE = :age;
		myname= :name;
		Col Sum( show(myname,myAge,:name,:age,"-");:age == myAGE );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is quite illustrative. Col cumulative behaves a bit different from how I exected it to behave.&lt;BR /&gt;I guessed Col Sum evaluates the arguemt once and then groups/collects the results according to groupBy.&lt;BR /&gt;&lt;BR /&gt;But actually:&lt;/P&gt;&lt;P&gt;Formula is evaluated for every row, in total 40x for rows RWx.&lt;BR /&gt;And with every iteration, Col Sum evaluates it's argument 40 times - for every row RWy.&lt;BR /&gt;I guess it tries to cache the result and won't evaluate the argument again for other RWx if it can be sure that it will be the same result.&lt;BR /&gt;&lt;BR /&gt;But in the case of Show() or :age = myAGE, it has to evaluate again and again.&lt;BR /&gt;-&amp;gt; in total 40 x 40 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so ,e.g. for row RWx = 3 (myName = Jane) , it evaluates the argument 40 times.&lt;/P&gt;&lt;P&gt;And for 8 of the 40 RWy, :age == myAge results in 1. So Col Sum is 8 for row 3.&lt;BR /&gt;Accordingly, Col Sum is 3 for row 40.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:49:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783515#M96793</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-22T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783517#M96794</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Even though it looks like it does work, I wouldn't use it (I think it should be fine if it required you to have :failureType as byvar). I would think that it is some sort of unintended behavior (even more than using 1 which shouldn't be allowed either according to JMP support, but let us hope that JMP never breaks that&lt;BR /&gt;&lt;LI-MESSAGE title="Make using formula expressions in Set Each Value and using expressions as first argument in Col statistical formulas supported behaviour" uid="666966" url="https://community.jmp.com/t5/JMP-Wish-List/Make-using-formula-expressions-in-Set-Each-Value-and-using/m-p/666966#U666966" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also feel much more confident if a functionality is documented - somehow protected against sudden removal ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP has to find out if it's OK to cache the results. Who knows the logic?&lt;BR /&gt;&lt;BR /&gt;Here, JMP thinks it's OK to use the cached data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;t0 = hptime();
New Column( "test",
	Formula(
		wait(0.1);
		Col Sum( hp time() )
	),
);

current data table() &amp;lt;&amp;lt; run formulas();

show((hptime()-t0)/1000000)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:48:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783517#M96794</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-22T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783518#M96795</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12313"&gt;@BHarris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12313"&gt;@BHarris&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;sometimes in column formulas, JMP will iterate over the rows in a column when entered as ":columnName"&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you give an example?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783518#M96795</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-22T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: JMP equivalent of Excel's COUNTIF function</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783519#M96796</link>
      <description>&lt;P&gt;Sure, open up BigClass.jmp and add a column with this formula:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Col Sum&lt;/SPAN&gt;( :height * :weight, :sex )&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 20:06:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-equivalent-of-Excel-s-COUNTIF-function/m-p/783519#M96796</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-08-22T20:06:13Z</dc:date>
    </item>
  </channel>
</rss>

