Reputation: 1523
How do I give an if statement in excel when we want to compare with a string?
I tried something like this:
=IF(B2="mystring", 595, B2)
Here basically, I am trying to replace a particular string in all the cells of a column with the number 595.
Upvotes: 0
Views: 3770
Reputation: 29339
Err 522 means you have a circular reference. You cannot refer in a formula to the same cell the formula sits in.
Yoy need to create a new column for the formula.
So, if you want to change values in column B
=IF(B2="mystring",333,B2)
thereUpvotes: 2