Hi, I'm trying to convert the following formula : =INDEX(A1:A56,MATCH(MIN(B1:B56),B1:B56,0))
to vba code but it doesn't seem to be working. I tried the following:
Application.WorksheetFunction.Index(A1:A56, Application.WorksheetFunction.Match(min(B1:B56,B1:B56, 0))
but I keep getting error message. I even tried copying the min value to a separate cell and use the following formula:
=INDEX(A1:A56,MATCH(B57,B1:B56,0)) and the corresponding code as
Application.WorksheetFunction.Index(A1:A56, Application.WorksheetFunction.Match(B57,B1:B56, 0))
but I still get the error message. Can someone please help with this one?
to vba code but it doesn't seem to be working. I tried the following:
Application.WorksheetFunction.Index(A1:A56, Application.WorksheetFunction.Match(min(B1:B56,B1:B56, 0))
but I keep getting error message. I even tried copying the min value to a separate cell and use the following formula:
=INDEX(A1:A56,MATCH(B57,B1:B56,0)) and the corresponding code as
Application.WorksheetFunction.Index(A1:A56, Application.WorksheetFunction.Match(B57,B1:B56, 0))
but I still get the error message. Can someone please help with this one?