I am trying to add code that will search for the string #DIV/0! in a range of cells (EF:W10) and if found, will replace that cell with NA. Below is what I have, but it is not quite working. What am I missing?
Dim rngDiv As Range
For Each rngDiv In Range("E4:W10")
If InStr(rngDiv.Value, "#DIV/0!") > 0 Then
rngDiv.Value = "NA"
End If
Next rngDiv
=IFERROR([current formula],"NA")?