Using wildcard (*.*) in an excel formula

suet

Board Regular
Joined
Oct 19, 2005
Messages
56
Hi

I hope someone can help me on this.

I have a spreadsheet similar to the following

Room Location Unit Room Name Surveyor Needed
Upstairs 2 Bathroom: Shower Tray 0
Downstairs 3 Bathroom: Tap 0
Upstairs 4 Attic No
Upstairs 6 Attic No
Downstairs 6 Attic No
Outside 7 Attic No
Inside 4 Bathroom: downstairs 0
Inside 3 Bathroom: Upstairs 0
Downstairs 12 Larder No
Downstairs 14 Larder No

I need a formula that will look at the contents of column C and if it contains the word "Bathroom" - regardless of whatever comes after it, then to put a zero into document D otherwise put Yes into column D.

I have tried to use a wildcard:=IF(C2>="*Bathroom*.*",0,"No")

However, it shows 0 for everything.

Please help.

Thanking you all in advance.

Regards
Sue
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi Eric

That worked a treat!!!

Thank you very much.

Much appreciated.

Regards
Sue
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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