excel vba - VBA - Top 10 percent of each region - Stack Overflow
Dim Dist90 As Double Dim Dist As Integer If Dist = 100 Then Dist90 = Cells(2, 48) ElseIf Dist = 200 Then Dist90 = Cells(3, 48) ElseIf Dist = 300 Then Dist90 = Cells(4, 48) ElseIf Dist = 400 Then Dist90 = Cells(5, 48) ElseIf Dist = 500 Then Dist90 = Cells(6, 48) ElseIf Dist = 600 Then Dist90 = Cells(7, 48) ElseIf Dist = 700 Then Dist90 = Cells(8, 48)...