I have a column which is populated using Index and Match functions and it results in a N/A value when the value is not found. I want to be able to replace all such error values from the column by a special value. I want to do this in VBA code. Any help?
I do not want to rewrite the function with an IF logic.
You really could do this without VBA, by the following:
IFERROR(myIndexMatchFormula,"special value")If you really need a VBA solution, try something like the below. It will find all the error cells in your range and replace with something of your choice. No
Ifstatements, no loops!