Dale provided you with the functions to get the rows you need.
Amy, the table you desired is an Excel-like table. The numeric values will be have to be character (in JMP) to create that table. JMP tables are database type tables where each column has a unique type.
The attached script will create the table you described, but it will not be of much use in JMP. The most usable format for analyses is the stacked format of the subset table.
This script also creates a display table from the subset table using Tabulate.