Conditional formatting using Search function

WendyHubard

New Member
Joined
Apr 4, 2017
Messages
39
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello Guru's
I'm trying to us conditional formatting on a table based on values enter in cell C1 and using the search function. It sort of works, but if C1 is empty/blank, the format is applied to all cells. Any Clues. Have had to use screen shots due to work security, but happy to upload a modified spreadsheet. Have tried with and without the first Formula. Any help greatly appreciated.

1742520426066.png


CF:
1742520361023.png



1742520305727.png


IF C! is BLANK
1742520478565.png
 
The end users don't search by the binder or index numbers.
So what actual columns did you mean by ..
end user could type a name, order name, purchaser etc.
.. given that none of those red values exactly appear as headings in your data and "etc" is an unknown quantity?
In any case, doesn't the option I gave without the need for helper columns do the job?

If you did want to keep using the helper columns you could simplify all formulas by ..
  • Only concatenate the relevant columns in col K (I have used cols C, D & E below but there may be more depending on the answer to my first question above).
  • Simpler formula in col L - errors do not matter for CF, they are treated as FALSE values (column could be hidden)
  • Simpler formula in the Conditional formatting (no need for =TRUE)

25 03 22.xlsm
ABCDEKL
1SearchBuyer 74
2
3Binder NameIndex NumberPurchzsprOrder NumberUniqueID
4202057Buyer 90OrdNum 28456Unique 926796Buyer 90OrdNum 28456Unique 926796#VALUE!
520232Buyer 48OrdNum 77550Unique 451807Buyer 48OrdNum 77550Unique 451807#VALUE!
6201913Buyer 21OrdNum 60514Unique 291593Buyer 21OrdNum 60514Unique 291593#VALUE!
720209Buyer 41OrdNum 35296Unique 839225Buyer 41OrdNum 35296Unique 839225#VALUE!
820207Buyer 74OrdNum 42023Unique 136741Buyer 74OrdNum 42023Unique 1367411
9202526Buyer 77OrdNum 51646Unique 321216Buyer 77OrdNum 51646Unique 321216#VALUE!
10201912Buyer 83OrdNum 31622Unique 524089Buyer 83OrdNum 31622Unique 524089#VALUE!
11202361Buyer 74OrdNum 49468Unique 392020Buyer 74OrdNum 49468Unique 3920201
12202017Buyer 48OrdNum 10647Unique 665287Buyer 48OrdNum 10647Unique 665287#VALUE!
13202213Buyer 38OrdNum 73867Unique 961025Buyer 38OrdNum 73867Unique 961025#VALUE!
14202480Buyer 34OrdNum 13682Unique 626439Buyer 34OrdNum 13682Unique 626439#VALUE!
15202589Buyer 16OrdNum 47794Unique 211090Buyer 16OrdNum 47794Unique 211090#VALUE!
16201948Buyer 11OrdNum 39396Unique 550797Buyer 11OrdNum 39396Unique 550797#VALUE!
17202529Buyer 73OrdNum 77354Unique 213919Buyer 73OrdNum 77354Unique 213919#VALUE!
18202078Buyer 20OrdNum 30620Unique 403200Buyer 20OrdNum 30620Unique 403200#VALUE!
19201939Buyer 38OrdNum 20470Unique 995111Buyer 38OrdNum 20470Unique 995111#VALUE!
20202170Buyer 80OrdNum 83981Unique 478209Buyer 80OrdNum 83981Unique 478209#VALUE!
21202051Buyer 87OrdNum 89880Unique 845895Buyer 87OrdNum 89880Unique 845895#VALUE!
22202443Buyer 2OrdNum 73770Unique 756503Buyer 2OrdNum 73770Unique 756503#VALUE!
23202593Buyer 70OrdNum 48773Unique 922951Buyer 70OrdNum 48773Unique 922951#VALUE!
CF (2)
Cell Formulas
RangeFormula
L4:L23L4=IF(C1="","",SEARCH($C$1,$K$4:$K$23))
K4:K23K4=C4&D4&E4
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A4:J23Expression=$L4textNO
 
Upvote 0

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