Vous êtes sur la page 1sur 30

Conditional Formatting Examples

• Same Cell Contextures Links


• Same Cell Ref PivotPower Premium Add-in
• MultiCell 30 Excel Functions in 30 Days eBook Kit
• Errors Contextures Excel Tips Website
• MissingText Contextures Excel Blog
• Hide Dups Excel Pivot Tables Blog
• Hide Dup Rows Debra's Pivot Table Books on Amazon
• In List
• Duplicates
• Expiry Contextures Recommends
• Expired Jon Peltier's Excel Chart Utilities
• Temperature Color Scale ExcelUser Dashboards
• Lottery Chandoo's Excel VBA School
• Printing Chandoo's Project Management Templates
• Shade Alt Excel Guru Magic of Pivot Tables Course
• Shade Band
• Shade Band Flex
• Shade Filtered
• Color Shapes
• Color Icons

www.contextures.com 03/10/2018
Month Units
January 69 Condition 1:
February 86 Cell Value Is greater than 75 (Green Fill)
March 54
April 62 Condition 2:
May 48 Cell Value Is less than 50 (Blue Fill)
June 96
July 47
August 72
September 70
October 21 Condition 1:
November 65 Cell Value Is greater than 75 (Green Fill)
December 71
Condition 2:
Cell Value Is less than 50 (Orange Fill)

Developed by Contextures Inc. www.contextures.com


Month Units High 75
January 69 Low 50
February 86
March 54
April 72
Condition 1:
May 48 Cell Value Is greater than cell $I$1 (Green Fill)
June 96
July 47 Condition 2:
August 72 Cell Value Is less than cell $I$2 (Red Fill)
September 70
October 21
November 65
December 71

Developed by Contextures Inc. www.contextures.com


Date Units Cost Total
3/12/2018 71 29 2059
Condition 1:
3/13/2018 85 30 2550 Formula Is =$B2>75 (Blue Fill)
3/14/2018 41 77 3157
Days Units Daily
7 71 10
0 0 #DIV/0! <== The error in this cell is hidden
4 58 15
9 29 3
Condition 1:
Formula Is =ISERROR(C2) (White Font)
t)
Name cell is blue in column B, if no initials in column D
Name Initials
Name 01
Name 02
Name 03 xx
Name 04
Name 05
Name 06 bb
Name 07
Name 08 ABD
Name 09 J
Name 10
Name 11 asd
Region Name
Ontario Ann Duplicate region
names are hidden
Ontario Ben when the table is
Quebec Cam sorted by Region
Quebec Dan

Condition 1:
Formula Is =A2=A1 (White Font)
Codes Valid
AA AA
BB BB
GG CC
AA
FF
CC
Code Duplicates numbers in the column are highlighted
4
3 On the Ribbon's Home tab, click Conditional Formatting
Click Highlight Cell Rules, then click Duplicate Values
6
Select one of the formatting options, and click OK
3
5
8
0
2
8
6
Duplicate records are highlighted Duplicate records are highlighted -- first instance

Date Customer Product Units Cost Total AllData Date CustomerProduct Units
12-Apr ABC Co Lamps 71 29 2,059 41376ABC 12-Apr ABC Co Lamps 71
13-Apr Mega Ltd Tables 85 30 2,550 41377Mega 13-Apr Mega Ltd Tables 85
14-Apr Big Inc Desks 41 77 3,157 41378Big 14-Apr Big Inc Desks 41
15-Apr Mega Ltd Chairs 10 90 900 41379Mega 15-Apr Mega Ltd Chairs 10
16-Apr Big Inc Desks 25 77 1,925 41380Big 16-Apr Big Inc Desks 25
12-Apr ABC Co Lamps 71 29 2,059 41376ABC 12-Apr ABC Co Lamps 71
13-Apr Mega Ltd Tables 20 30 600 41377Mega 13-Apr Mega Ltd Tables 20
hlighted -- first instance is not highlighted

Cost Total AllData


29 2,059 41376ABC
30 2,550 41377Mega
77 3,157 41378Big
90 900 41379Mega
77 1,925 41380Big
29 2,059 41376ABC
30 600 41377Mega
Date Days Dates within the next 30 days are highlighted
8-Apr-18 29
9-Apr-18 30
Condition 1:
10-Apr-18 31 Formula Is =AND(A2-TODAY()>=0,A2-TODAY()<=30) (Blue Font)
Policy Date Expired dates are highlighted
903934 7-Mar-18
151598 8-Mar-18
Condition 1:
969194 9-Mar-18 Formula Is =A2<TODAY() Red Fill
679098 10-Mar-18
862253 11-Mar-18
649340 12-Mar-18
Temperature

80 F Converts
to: 27 C
F
140 140
130 130
120 120
110 110
100 100
90 90
80
70 70
60 60
50 50
40 40
30 30
20 20
10 10
0 0
-10 -10
-20 -20
-30 -30
-40 -40
-50 -50
www.contextures.com
No1 No2 No3 No4 No5 No6 Numbers that match those drawn are highlighted
Ticket1 2 15 26 27 36 48
Ticket2 1 12 13 15 24 34
Condition 1:
Ticket3 3 5 20 28 37 40 Formula Is =COUNTIF($B$6:$G$6,B2)>=1 (Green Fill)

Drawn 3 15 25 26 47 49
)>=1 (Green Fill)
M T W T F x Change font colour to hide cells when printing
Dept1 x
Dept2 x x Condition 1:
Formula Is =$H$1="x" (White Font)
Dept3
Condition 1:
Formula Is =MOD(ROW(),2) (Green Fill)
Condition 1:
Formula Is =MOD(ROW(),4)<2 (Light Grey Fill)
Product Qty Cost Amt Tax Total Rows Grey 2
Paper 20 12.95 259.00 18.13 277.13 Rows No Fill 1
Staplers 42 15.95 669.90 46.89 716.79 Total
Pens 44 2.19 96.36 6.75 103.11
Paper 10 12.95 129.50 9.07 138.57
Pens 95 2.19 208.05 14.56 222.61
File Folders 8 4.99 39.92 2.79 42.71
Staplers 25 15.95 398.75 27.91 426.66
Pens 30 2.19 65.70 4.60 70.30
Month Qty
Jan 60
Jan 69 Condition 1:
Jan 71 Formula Is
=MOD(SUBTOTAL(3,$A$1:$A2),2)
Jan 35
(Green Fill)
Jan 100
<10 is red circle
44 n >30 is green square
14 t all other values are yellow diamond
17 t
9 l Cells C3:C7 are formatted with Wingding font, and yellow font col
20 t A formula in cells C3:C7 returns a letter based on
the value in the adjacent cell in column B.
-- in Wingding font, l is a circle, n is a square and t is a diamo
Conditional formatting in column C colours the shapes, based
on the value in the adjacent cell in Column B.
font, and yellow font colour.

a square and t is a diamond


rs the shapes, based
Icons Symbols Cond Format Rules - Values & Symbols Char
100 ã 100 Percentile Value Symbol ã

90 ã 90 67% 70.3
ã â

80 ã 80 33% 39.7
â ä

70 â 70 0% 10
ä p

60 â 60 q

50 â 50 u

40 â 40
30 ä 30
20 ä 20
10 ä 10

NOTE: If you change to a Wingdings symbol


format cells in Wingding font
in Cond Format rules and in column C

In Column B, conditional formatting icon sets are used


Up arrow is always green, and down is red
Create your own icons in an adjacent column, with a lookup table
and special symbols, to show red up and green down arrows
Wingdings3 Char Wingdings
ã
ü ü

â
û û

ä
J J

p
K K

p
L L

lookup table
Conditional Formatting Examples
• Same Cell
• Same Cell Ref
• MultiCell
• Errors
• MissingText
• Hide Dups
• Hide Dup Rows
• In List
• Duplicates
• Expiry
• Expired
• Lottery
• Printing
• Shade Alt
• Shade Band
• Shade Band Flex
• Shade Filtered
• Color Shapes

www.contextures.com 03/10/2018
Contextures Links
PivotPower Premium Add-in
30 Excel Functions in 30 Days eBook Kit
Contextures Excel Tips Website
Contextures Excel Blog
Excel Pivot Tables Blog
Debra's Pivot Table Books on Amazon

Contextures Recommends

Jon Peltier's Excel Chart Utilities


ExcelUser Dashboards
Chandoo's Excel VBA School
Chandoo's Project Management Templates
Excel Guru Magic of Pivot Tables Course

www.contextures.com 03/10/2018

Vous aimerez peut-être aussi