This macro stores the ranks of the data for each level of a grouping variable. By default, the smallest value in each group is assigned a 1, the 2nd smallest value in each group is assigned a 2, and so on. Ties are assigned the average rank.
Be sure that Minitab knows where to find your downloaded macro. Choose . Under Macro location browse to the location where you save macro files.
If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.
Suppose your groups are in C2 and the data to be ranked is in C3 and you want to store the ranks in C4. To run the macro, choose and type:
%BYRANK C2 C3 C4