Conditional Format Formula

Mista_sav

Board Regular
Joined
Aug 18, 2019
Messages
78
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hi Team, im trying to write a conditional format that is like "Cells that contain a specific word" Contain being the main thing as the cells contain multiple words.

- So my range is the C column
- I want it to highlight a color if the Cell contains say the word "Woolworths" or it might say "KFC" The cells themselves might say Woolworths NZ 123456 but i only want it to trigger off the word "Woolworths"

Can i do one formula so i dont have to process multiple Conditional Format?

Because each file is new, it will have different keywords so i will just attach it to a macro to run the conditional format to highlight the cells with the desired words
 

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
Check this:

Dante Amor
C
1
2
3
4Woolworths NZ 123456
5
6a
7b
8c
9some KFC 888
10e
11f
Hoja4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH("Woolworths",C1)),ISNUMBER(SEARCH("KFC",C1)))textNO
 
Upvote 0
Check this:

Dante Amor
C
1
2
3
4Woolworths NZ 123456
5
6a
7b
8c
9some KFC 888
10e
11f
Hoja4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH("Woolworths",C1)),ISNUMBER(SEARCH("KFC",C1)))textNO
Thanks mate but where do i put this formula?
 
Upvote 0
Check this:

Dante Amor
C
1
2
3
4Woolworths NZ 123456
5
6a
7b
8c
9some KFC 888
10e
11f
Hoja4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH("Woolworths",C1)),ISNUMBER(SEARCH("KFC",C1)))textNO
That works awesome hahah i have some with 20 words to do hahah fun!

thanks again sir
 
Upvote 0
Check this:

Dante Amor
C
1
2
3
4Woolworths NZ 123456
5
6a
7b
8c
9some KFC 888
10e
11f
Hoja4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH("Woolworths",C1)),ISNUMBER(SEARCH("KFC",C1)))textNO
how do i add a fourth and fifth and subsequent more words? I tried 4 )))) but it didnt work on the next word?
 
Upvote 0
Rather than hardcoding it in the formula, you can list them out and reference them.
Book2
CDE
1Woolworths NZ 123456Woolworths
2KFC
3aa
4bb
5c
6some KFC 888
7e
8f
Sheet13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH($E$1:$E$4,C1)))textNO
 
Upvote 0
Rather than hardcoding it in the formula, you can list them out and reference them.
Book2
CDE
1Woolworths NZ 123456Woolworths
2KFC
3aa
4bb
5c
6some KFC 888
7e
8f
Sheet13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CExpression=OR(ISNUMBER(SEARCH($E$1:$E$4,C1)))textNO
i would but he file will differ everytime and wont have the subset
 
Upvote 0
I don't know what you mean by subset. What are you referring to?


You can't use other workbook reference in CF.
So basically each cell is a word that could appear in certain cell that we download. I want it to highlight a colour depending on the word so 9 categories i would do 9 conditional formats. Otherwise id have to do like 100 CF hahah

IncomeFood/GroceriesLiabilitiesInsurancesGamblingDiscretionaryUtilitiesTransportPersonal Care
ACCCOUNTDOWNGEMA M IBet 365KFC2 DegreesNZTABarber
BenefitDairyAfterpayAABaytreeBakeriesContactAlliedBargain Chemist
IncomeFour SquareAoteaAIABetBakeryCouncilBPChemist
IRDFreshchoiceBaycorpAMICasinoBig BarrelEcotricityCaltexChemist Warehouse
PayrollMad ButcherCant WaitAndoIlixiumBurger KingElectric KiwiFuelDentist
PayslipMy Food BagCollection HouseFMGNicosiaDisney PlusElgasGullDoctor
W&INew WorldColumbus FinancialFuneralSkycityHenrysFlickNPDHair
WagePAKCrediaIAGSpinbetLiquorlandFrankShellPharmacy
WagesPAK N SAVECredit CardInsuranceTABLottoGenesisTransportSalon
WFFSquareCredit CorpLanternNew Zealand RacingMcDonaldsGlobugUberUnichem
SuperetteCresterLumley NeonGrey PowerVTNZ
SupermarketDCOProvident NetflixInternetZ
WoolworthsDebt WorksSouthern Cross PrimeMercuryKora
Milk BarDTRSouthsure SkyMeridian
Milk RunFinance NowSoveriegn SpotifyNau mai
WWNZ OnlineFinesState TakeawayNova
FlexiSuncorp Uber EatsOctopus
GenevaTower TavernOne New Zealand
GenoaVERO Powershop
GilroseCredicare Pulse
Harmoney Rates
Hippo Rockgas
Home Loan Skinny
Instant Finance Spark
Intercoll Vodafone
Latitude Orcon
Loan Waste Management
Mastercard Laundromat
MOJ
Moneyshop
Mortgage
MTF
Nectar
Oxford
Personal Loan
Pioneer
Platinum Finance
QCARD
SBS Money
Seed
Thorn
UDC
Wallet Wizard
ZIP
Smiths City
Swoosh
Avanti
 
Upvote 0

Forum statistics

Threads
1,225,624
Messages
6,186,066
Members
453,336
Latest member
Excelnoob223

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