I haven’t used this feature, so I am just going to say what I think is happening and how to work around that.
The error “failed to find and replace text” does not mean the text didn’t exist. I believe it means that the process literally failed (ex. Your Excel Instance was closed).
So, I would rewrite this to:
Read from Excel (Range) to %ExcelData%
For each %CurrentItem% in %ExcelData%
If %CurrentItem% does not contain “potato”
Change %CurrentItem% to “Not found”
Else
Replace text “potato” with “whatever”
End If
End
Write %ExcelData% to (Range)
This extracts it all into a DataTable, rewrites it in the DataTable, then writes the DataTable back to Excel.
Best of luck!