Since JMP16? you can add Excluded(Row State()) to Col statistical functions
Do note that it will still calculate Mean for excluded rows as a separate "excluded" group.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Clear Row States << Select Rows(Index(1, 10)) << Exclude;
dt << New Column("Col Mean for each Sex", Formula(Col Mean(:height, :sex)));
dt << New Column("Col Mean for each Sex grouped by Excluded",
Formula(Col Mean(:height, :sex, Excluded(Row State())))
);
-Jarmo