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:

[TABLE="width: 255"]
<tbody>[TR]
[TD="width: 255"]"FAVORITES 2 (Duets only)"


thank you for your consideration

<tbody>
</tbody>

<tbody>
</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
=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,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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