0

Example data:

A    B
------
1    HELLO
2    HELLO
2    HELLO
3    HELLO

I want to replace $ with , WORLD! but only if A is equal to 2. Such that the final result would be:

A    B
------
1    HELLO
2    HELLO, WORLD!
2    HELLO, WORLD!
3    HELLO

1 Answer 1

1

Please use the following arrayformula in conjunction with 2 nested IF functions. Adjust ranges to your needs:

=ArrayFormula(IF(P2:P<>"", 
           IF(P2:P=2,Q2&", WORLD",Q2),""))

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.