J
James8309
Hi everyone..
Ive been trying to figure this problem that I am having for more than
an hour and it is driving me crazy.
1. I have 5 different cells from A1:E1.
2. Random number from 1 to 13 gets inputted into each cell randomly
e.g. A1 can be anything from 1 to 13.
3. I have 5 different cells from A2:E2 which suppose to rank the
numbers in A1:E1 and place them correctly.
i.e. A2 = Smallest Number from A1:E1, B2 = 2nd Smallest, C2 = 3rd
Smallet and of course E2 = biggest number from A1:E1.
Question
I just put in SMALL(A1:E1,2) in B2 and SMALL(A1:E1,3) in C2 and yes it
works fine if A1:E1 is like this
A1 = 13
B1 = 4
C1 = 2
D1 = 5
E1 = 1
which will give
A2 = 1
B2 = 2
C2 = 4
D2 = 5
E2 = 13
BUT it there are repeating numbers my formulae doesn't work for me.
i.e.;
A1 = 2
B1 = 2
C1 = 2
D1 = 1
E1 = 5
it gives me
A2 = 1
B2 = 2
C1 = 5 !!!!!!!!!!!!!!!!!!!!!!!
How do I fix it so it returns 1 - 2 - 2 - 2 - 5?
Thank you for your help in advance!
Regards,
James
Ive been trying to figure this problem that I am having for more than
an hour and it is driving me crazy.
1. I have 5 different cells from A1:E1.
2. Random number from 1 to 13 gets inputted into each cell randomly
e.g. A1 can be anything from 1 to 13.
3. I have 5 different cells from A2:E2 which suppose to rank the
numbers in A1:E1 and place them correctly.
i.e. A2 = Smallest Number from A1:E1, B2 = 2nd Smallest, C2 = 3rd
Smallet and of course E2 = biggest number from A1:E1.
Question
I just put in SMALL(A1:E1,2) in B2 and SMALL(A1:E1,3) in C2 and yes it
works fine if A1:E1 is like this
A1 = 13
B1 = 4
C1 = 2
D1 = 5
E1 = 1
which will give
A2 = 1
B2 = 2
C2 = 4
D2 = 5
E2 = 13
BUT it there are repeating numbers my formulae doesn't work for me.
i.e.;
A1 = 2
B1 = 2
C1 = 2
D1 = 1
E1 = 5
it gives me
A2 = 1
B2 = 2
C1 = 5 !!!!!!!!!!!!!!!!!!!!!!!
How do I fix it so it returns 1 - 2 - 2 - 2 - 5?
Thank you for your help in advance!
Regards,
James