According to `L' Position I want to plot the Nos. from 1 to 12, how to do this by formula
L 12 If L = 12 If L = 5 If L = 8
C 7 1 2 9 6
S 6 2 3 10 7from 12.xlsimage illus.JPG
B 6 3 4 11 8
V 4 4 5 12 9
A 7 5 6 1 10
G 2 6 7 2 11
M 7 7 8 3 12
R 8 8 9 4 1
K 2 9 10 5 2
U 12 10 11 6 3
11 12 7 4
12 1 8 5
I typed manually for illustration but I want it should be done by formula

Note :
1) This is not class room assignment, this is for real application
2) Please Copy the formula and paste it by text instead of upload the excel file.

thank in advance

thilag