How do I rank-order values of a variable (replace values with their ranks)?

Ribbon bar. Select the Data tab. In the Transformations group, click Rank to display the Rank Order Values dialog box.

Classic menus. Select Rank from the button menu on the Spreadsheet toolbar or from the Data menu to display the Rank Order Values dialog box.

Click the Variables button to select the variables to be ranked. Note that this operation replaces the original values with their respective ranks based on the sorted series. Optionally, you can also specify a subset of cases to be affected by the operation (click the Cases button), use case weights (click the Weight button), and set a number of options to perform particular (non-default) types of ranking (click the button in this dialog box or press the F1 key to access a comprehensive description of Rank Order Values).