Conditional formatting base on another cell (if the cell 'contains' for direct match)

Peptide

Board Regular
Joined
Apr 12, 2016
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hello,
I know i can do exact match formatting using the conditional formatting function, Is this possible?

Data in A1 is selected from 10 options in a pick list (i.e 128 Leslie Road or 18 Taunton Street)
I would like B1 to be highlighted (yellow is fine) if A1 contains either the word Road or Ave.

Any thoughts?

Thanks in advance,
Bob
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Select B1

Conditional Formatting
New Rule
Use a formula to determine...

=ISNUMBER(SEARCH(" Rd",A1))+ISNUMBER(SEARCH(" Ave",A1)+ISNUMBER(SEARCH(" Road",A1))+ISNUMBER(SEARCH(" Avenue",A1))

Make sure you include the space before "Rd and "Ave" or you'll get cells highlighted for things like

Bardon Close
Havelock Street
 
Last edited:
Upvote 0
Use this CF formula for cell B1:
Code:
=OR(ISNUMBER(FIND("Road",A1)),ISNUMBER(FIND("Ave.",A1)))
Note that "FIND" is case-sensitive. If you do not want it to be case-sensitive, use "SEARCH" instead of "FIND".
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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