Conditional Formatting

A Parker

New Member
Joined
Sep 7, 2023
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
How do I conditionally format cells, which are NOT in a range. I'm looking to highlight the highest and lowest value in random cells.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You'd still need to specify the range the CF applies to (the 'boundary') for the random cells. The demo below uses the range A1:Z100.
Book1
ABCDEFG
1
22
3
4
5
65
7
83
9
10
111
12
13
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:Z100Expression=AND(A1<>"",A1=MIN($A$1:$Z$100))textYES
A1:Z100Expression=AND(A1<>"",A1=MAX($A$1:$Z$100))textYES
 
Upvote 0
Welcome to the MrExcel board!

If there could be other numerical values in between, try this.
Whatever cell is mentioned at the beginning of the formulas (A2 for me) must be the active cell when the CF is applied.
(Borders were added manually to help me identify the relevant cells)

23 09 08.xlsm
ABCDE
16521335780
25145109517
31773956167
46222135014
52049499385
62062978836
76396774246
84541864415
91271186754
104650636128
113798319796
125492727244
CF MAX MIN
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D12,B7,C6,A2Expression=A2=MIN($A$2,$B$7,$C$6,$D$12)textNO
D12,B7,C6,A2Expression=A2=MAX($A$2,$B$7,$C$6,$D$12)textNO
 
Upvote 0
You'd still need to specify the range the CF applies to (the 'boundary') for the random cells. The demo below uses the range A1:Z100.
Book1
ABCDEFG
1
22
3
4
5
65
7
83
9
10
111
12
13
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:Z100Expression=AND(A1<>"",A1=MIN($A$1:$Z$100))textYES
A1:Z100Expression=AND(A1<>"",A1=MAX($A$1:$Z$100))textYES
 
Upvote 0
See attached an example.
I want to apply Conditional formatting (highest & lowest value) to the following cells: E4, G4, I4, K4
Is that possible?
1694148718540.png
 
Upvote 0
Yes (although that's very different from your original post :unsure: ) like this:
Book1
EFGHIJK
2
3AmountAmountAmountAmount
41,000,000310,500960,000260,000
5
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E4,G4,I4,K4Expression=AND(E4<>"",E4=MAX($E$4,$G$4,$I$4,$K$4))textYES
E4,G4,I4,K4Expression=AND(E4<>"",E4=MIN($E$4,$G$4,$I$4,$K$4))textYES
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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