@Craige_Hales So, if the first entry is a column object, the Col Sum() function steps over the values in the column (honoring the byVar setting) summing the values, but if the first entry is just a number it just uses that?
Can the first entry be any expression that returns a value?
Can it also return a list that gets stepped over similar to providing a column object? What if the length of that list doesn't match the length of the byVar list?
This internal behavior of JMP is fascinating and I'd love to learn more about it, but I can't find anything in the docs to help me develop a mental model of what it's doing in cases like this...
Note, countif is an excel function that counts all items of a range of cells that meet some criteria. I don't think Col Sum() does exactly that, there doesn't seem to be a way to use it to count the number of cases where col1 > 7 and col2 == 15, for example.