Variable Manipulation
Arturo,
How about this to put them into ascending order
Dim ary(1 To 3)
Dim temp
ary(1) = Range("A9").Value
ary(2) = Range("C9").Value
ary(3) = Range("E9").Value
If ary(1) ary(2) Then
temp = ary(2)
ary(2) = ary(1)
ary(1) = temp
End If
If ary(2) ary(3) Then
temp = ary(3)
ary(3) = ary(2)
ary(2) = temp
If ary(1) ary(2) Then
temp = ary(2)
ary(2) = ary(1)
ary(1) = temp
End If
End If
You can then use it's index as the rank
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Arturo" wrote in message
...
I'm assigning cell contents to variables;
Mid = Range("A9").Value
Nor = Range("C9").Value
Uni = Range("E9").Value
While this procedure is running I need to sort those three variables low
to
high then run a series of nested if statements. I do not know how to sort
the variables assigning a ranking to be used in the nested ifs. Any
advise
welcome.
Appreciatively,
Arturo
|