Hi Folks,
I am having issues implementing the use of INDEX and MATCH in a macro, basically I would need a macro that loop through all cells of a column applying a INDEX and MATCH formula to it only if a value is found (i.e. if the formula does not return #N/A), otherwise do nothing. So far I wrote the following:
However I am having issues with the above line in bold (I tried to write a statement to apply the INDEX & MATCH formula if its result is not #N/A), the macro stops at that line with Run-time errror 1004.
The formula in itself is:
Could anyone point me to the right direction in order to convert such a formula into vba?
I googled most of the evening and could not find the right syntax.
Thanks a lot,
Ant
Bookmarks