By: Raiyan Zaman Adrey

In reply to colynn burrell.

Dear COLYNN BURRELL,

Thanks for reading our article. Try the following formula to resolve your issue.
=IF(C5="Fail", TEXT("Replace, Review", "[$-409]@"), "")

The formula indicates that if cell C5 contains text Fail, then the formula will return Replace, Review. If not, then the result it will return will be blank.

Formula Breakdown
● TEXT(“Replace, Review”, “[$-409]@”)
This formula returns Replace, Review each time.
● IF(C5=”Fail”, TEXT(“Replace, Review”, “[$-409]@”), “”)
This formula returns Replace, Review only for the text string Fail.

Now to add red color to the output, use the conditional formatting feature as illustrated in this article.
● Select the range D5:D9.
● Go through these steps: Home >> Conditional Formatting >> New Rule.

● Now, select Format only cells that contain from the Select a Rule Type section.
● Select Specific Text.
● Type Replace, Review.
● Click on Format.

● Select Font.
● Click on the arrow down icon in the color section.
● Select the color red.
● Click on OK.

● Click on OK again.

● And the output will be as follows as you have desired.

Note: However, you can’t change the color of the output just after applying the formula. You have to use conditional formatting for that.

If the problem still appears, kindly send us your Excel file and specify the exact problem you are facing.
Thank you

Best Wishes,
Raiyan Zaman Adrey