IF Statement with condition

BJSax

New Member
Joined
Sep 21, 2010
Messages
6
I want to return a cell result for cell c20 that says this:
If cell b10 contains the word "Good", leave cell c20 blank.
But, if cell b10 does NOT contain the word "Good" then copy the content of cell b10 to cell c20.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Is it not simply:

Code:
=IF(B10="Good","",B10)

Entered in C20.

Or is there further criteria to consider?

Matty
 
Upvote 0
That seems to only work if the statement in B10 begins with good but not contains the word "Good" whish is what I am looking for.
 
Upvote 0
Vog awesome answer.

Vog reply is correct but as per BJSax requirement the formula be as below


=IF(ISNUMBER(SEARCH("good",B10)),"",B10)

i just interchanged the true and false values.
 
Upvote 0

Forum statistics

Threads
1,215,588
Messages
6,125,691
Members
449,250
Latest member
azur3

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