To automatically Define Names according to the labels in the top rows cells and in the left columns cells:
1. Select any cell in the data area and select the Current Region by pressing Ctrl+Shift+* or press Ctrl+A.
2. Select Formulas -> Create from selection (in Named Cells Group).
3. Check the Top row and Left column options, and then click OK.
Now, each row and column range defines its own range Name.
The Name January refers to $B$2: $B$9.
The Name Units refers to $B$2: $C$2.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.