I have two columns: time and position and need to find the corresponding time the position closest to a variable.
time: Range B:B position: Range C:C variable = target
I've been able to do it on excel using the following formula, but when I do it on Macros (insert Application.WorksheetFunction
in front of Index, Match, and Min) I get error
‘Run-time error ‘13’.
I've listed the data as Ranges. Not sure what else to do.
=INDEX(data,MATCH(MIN(ABS(data-value)),ABS(data-value),0))
Application.WorksheetFunction
– Gangula