If one column has X, then replace all instances of (a word) in another column

thankyou

Board Regular
Joined
Aug 13, 2008
Messages
189
Your help would be so appreciated if you feel it, thank you.

If Column "E" has an "S" or "U+U" in the cell, then REPLACE the instance of "Favorites" in that row's Column I with:

"FAVORITES 1 (Solos/OCs/twins only)"

Similarly,

If Column "E" has an "D" in the cell, then REPLACE the instance of "Favorites" in that row's Column I with:

"FAVORITES 2 (Duets only)"


thank you for your consideration

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=IF(OR(NOT(ISERROR(SEARCH("*S*",E2))),NOT(ISERROR(SEARCH("*U+U*",E2)))),SUBSTITUTE(I2,"Favorites","FAVORITES 1 (Solos/OCs/twins only)"),IF(NOT(ISERROR(SEARCH("*D*",E2))),SUBSTITUTE(I2,"Favorites","FAVORITES 2 (Duets only)")))
 
Upvote 0
Re: If one column has X, then replace all instances of (a word) in another column - SOLVED

=IF(OR(NOT(ISERROR(SEARCH("*S*",E2))),NOT(ISERROR(SEARCH("*U+U*",E2)))),SUBSTITUTE(I2,"Favorites","FAVORITES 1 (Solos/OCs/twins only)"),IF(NOT(ISERROR(SEARCH("*D*",E2))),SUBSTITUTE(I2,"Favorites","FAVORITES 2 (Duets only)")))

Pretty brilliant brother. Worked like a charm and saved me a ton of time, but mostly, totally saved my a*s. Thanks big-time for helping out.

SOLVED, thanks to KolGuyXcel
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top