Inspired by a recent query at one of the Excel forums I occasionally visit, I would like to share a formula-based solution for the task of generating an *n*x*n* grid of random integers, where each of those integers is unique within that range.

For example, for the case of *n*=10, we might have, in A1:J10:

where I have formatted the cells in this range as custom type: 00 (applying a TEXT function to the formula would complicate matters, in the sense that this would interfere with the functioning of our FREQUENCY construction).