I have two Array Input(k) and Output(k).
I am looking to print Input(k) value for the corresponding minimum Output(k). This code is giving p = 1 but my minimum value is not at the index one in the array.
I am looking to print Input(k) value for the corresponding minimum Output(k). This code is giving p = 1 but my minimum value is not at the index one in the array.
Code:
p = Application.Match(Application.Min(Output), Output, 0)
Debug.Print p
Set rDest = ThisWorkbook.Sheets("Design2").Cells(j, 16)
rDest.Resize(1, 1).Value = Input(p)