The parameters of the normal distribution are its mean and standard deviation. The best fit for a set of marks is obtained by setting these to the mean and standard deviation of the data.
All normal distributions have the same 'shape' but different centre and spread. Any normal distribution can therefore be translated into a standard normal distribution by a simple scaling.
All normal distributions have the same proportions of values within 1, 2, and 3 standard deviations of the mean. This corresponds to standardised values between ±1, ±2, and ±3. This is a rule-of-thumb that also applies approximately to other distributions.
Data can be standardised in the same way as a normal distribution -- subtract the mean and divide by the standard deviation. These are called z-scores.
Stanines are z-scores, translated into an integer scale betweeen 1 and 9.
For some standard tests, a national distribution of marks is available for use as a reference population.
Individual marks in a class can be assessed against a reference population. Each mark can be translated into a percentile in the reference population.
The reference population can also be used to translate individual marks into stanines.
A simple linear scaling of a set of marks can change the mean and standard deviation to any desired values.
Simple linear scaling can change the top marks too much. A piecewise linear scaling changes the extreme marks less.
Piecewise linear scaling can be done easily in Excel.