I have a custom excel fomula that looks like so:

ReturnCellvalue(x,y,z)

X = WorkSheet Name

Y = Row Location

Z = Column Location

I'm exporting data from a source system that returns null values as spaces, which the formula above can't resolve (gives value error).

I CAN resolve it by using the following formula N(returncellvalue(x,y,z)).

My question is, is there is a way, macro or not, to find any occurence of the Returncellvalue(x,y,z) formula and replace it with the wrapped version

N(returncellvalue(x,y,z).

I would do it manually but I've inhereted these Excel models and there has to be at least 1,000,000 of these formulas that need wrapping

Keep in mind that the variables x,y,z are dynamic values, and in some cases other formulas.

I'm a novice with VBA, so any help is appreciated!!

Thanks in advance!