0% found this document useful (0 votes)
21 views

Conditional Formatting Practice

Uploaded by

azdroik26
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Conditional Formatting Practice

Uploaded by

azdroik26
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Conditional Formatting

Conditional Formatting
Conditional formatting applies formats, such as fill with yellow or use a red
font, to a selected range when conditions you choose are met. There are built-
in conditions (rules), such as format blank cells or cells with values greater than
zero. You can also create custom rules. The formatting changes automatically if
the cell values change.
For example, L12:M15 uses conditional formatting to fill a range with light blue
for any cell values that are greater than 10. M13 is currently the only value
greater than 10, but if you enter a value greater than 10 in another cell in the
range, you will see the format appear - try it out!. If you enter a number equal
or smaller than 10 in M13, you will see the conditional formatting disappear -
give it a try!

Apply a Standard Rule


You find the Conditional Formatting menu on the Home ribbon, as shown to
the right. The built-in rules are easy to use and fun to explore. Highlight Cells
Rules options, shown to the right, include greater than, less than, and equal to
options. Top/Bottom Rules options, shown right, include Top 10 Items (you can
change 10 to any number), Top 10 % and more. These rules are all easy to use.
You select a range, click one of the options, specify the conditions, and the
format you want applied.

Exercise 1
Format the cells in L25:M31 in the Top 25% with Light Red Rill. To do this, you
will first choose Top 10% from the Top/Bottom Rules, then change 10% to 25%
and choose the format from the dropdown menu. Note that Light Red Fill is a
standard option that differs from Light Red Fill with Dark Red Text.

Combine Rules
You apply multiple conditional formatting rules to the same range by adding
each one in turn. A typical use of conditional formatting is to color all "high"
values one color and all "low" values another color.

Exercise 2
The data to the right show the total base hits achieved in the 2022 baseball
season by 14 professional baseball players. Format the highest 3 values in
M39:M52 with green fill and dark green text, and lowest 3 values in the same
range with red fill and dark red text.

Greater/Less than Cell Reference


If you want to easily change how many of the high or low items should be
conditionally formatted, you can reference a cell input instead of providing a
static value into the rule dialog box. For example, to use S38 as the greater-
than condition, select the range, click Conditional Formatting, Highlight Cell
Rules, then Greater Than. In the Greater Than dialog box, reference S38 under
Format Cells that are GREATER THAN.

Exercise 3
Apply conditional formatting to P39:P52 to format the value greater than S38
to have green fill with dark green text, and the values less than S39 to have
light red fill with dark red text.

Feel free to try different values in S38 and S39.

Other Built-in Conditional Formatting Possibilities


As you see on the Conditional Formatting dropdown, there are many built-in
choices that are easily applied. The Data Bars, Color Scales, and Icon Sets are
amazing, though you have to be careful not to add so much formatting that it
becomes hard to understand! The point of all of them is to is to make key
information easier to see in the data.
to have green fill with dark green text, and the values less than S39 to have
light red fill with dark red text.

Feel free to try different values in S38 and S39.

Other Built-in Conditional Formatting Possibilities


As you see on the Conditional Formatting dropdown, there are many built-in
choices that are easily applied. The Data Bars, Color Scales, and Icon Sets are
amazing, though you have to be careful not to add so much formatting that it
becomes hard to understand! The point of all of them is to is to make key
information easier to see in the data.

The data to the right show titles, release year, Rotton Tomatoes scores, IMBD
scores and box office earning for 30 movies. The box office earnings in Column
P are an obvious place to add some formatting that will make the higher and
lower revenues easy to identify. Data Bars will do this nicely. They are
essentially a bar chart overlaying the data.

Exercise 4
Apply Data Bars to the range P57:P86, using any color you wish. First select the
data range, then on the Conditional Formatting menu, choose Data Bars and
then a color from either the gradient or solid fill options.
Apply any other conditional formatting you like to the Year and Score fields in
Columns M, N and O.

Create, Clear and Manage Conditional Formatting Rules


There are three options at the bottom of the Conditional Formatting menu -
New Rule, Clear Rules, and Manage Rules. New Rule allows you to create a rule
when it does not already exist in the standard options. You use Clear Rules to
delete rules from a selected range or from the entire workbook. Finally, the
Manage Rules dialog box shown to the right lets you see and edit the rules, if
any, for the current selection or any of the worksheets in the current
workbook.

Save this file and submit it via Canvas.


Fill Light Blue if > 10
9 9
7 12
9 8
6 5

Menu on Home ribbon Conditional Formatting Menu Higlight Cell Rules

Ex 1:
78 880
535 947
775 981
732 79
69 728
89 54
578 315

Ex 2: Ex 3:
Player Name 2022 Hits Player 2022 Hits Hits > 120
Victor Caratini 54 Victor Caratini 54 Hits < 50
Rowdy Tellez 116 Rowdy Tellez 116
Kolten Wong 108 Kolten Wong 108
Willy Adames 134 Willy Adames 134
Jace Peterson 68 Jace Peterson
Christian 68
Christian Yelich 145 Yelich 145
Tyrone Taylor 87 Tyrone
Hunter Taylor 87
Hunter
AndrewRenfroe 121 Renfroe
Andrew 121
McCutchen 122 McCutchen 122
Luis Urías 97 Luis
OmarUrías 97
Omar Narváez 54 Narváez 54
Keston Hiura 53 Keston
Mike Hiura 53
Mike Brosseau 36 Brosseau 36
Lorenzo Cain 26 Lorenzo Cain 26

Movie Year Tomato Score IMBD Score xEarnings


2001: A Space Ody 1968 92% 8.3 $146,550,915
Avatar 2009 82% 7.9 $2,923,706,026
Avengers: Endgam 2019 94% 8.4 $2,799,439,100
Birdman 2014 91% 7.7 $103,224,987
Bohemian Rhapso 2018 94% 8.5 $910,809,311
Deadpool 2016 85% 8.1 $782,677,412
Django Unchained 2012 87% 8.4 $426,746,414
Fantastic Mr. Fox 2009 93% 7.9 $46,597,702
Fargo 1994 94% 8.1 $60,674,377
Forrest Gump 1994 71% 8.8 $678,233,252
Frozen 2013 90% 7.4 $1,284,540,518
Full Metal Jacket 1987 91% 8.3 $120,051,669
GoodFellas 1990 96% 8.7 $47,652,299
Inglorious Basterd 2009 89% 8.3 $321,512,321
Joker 2019 69% 8.4 $1,074,458,282
Memories of Murd 2005 95% 8.1 $1,418,908
Nightcrawler 2014 95% 7.8 $50,331,456
Parasite 2019 99% 8.5 $263,158,473
Prisoners 2013 81% 8.1 $122,145,262
Shutter Island 2010 68% 8.2 $299,505,478
The Big Short 2015 89% 7.9 $133,403,560
The Dark Knight 2008 94% 9 $1,006,444,371
The Departed 2006 91% 8.5 $291,585,670
The Grand Budapes 2014 92% 8.1 $173,371,807
The Lion King 1994 93% 8.5 $968,511,805
The Silence of the 1991 95% 8.6 $272,790,543
The Truman Show 1998 95% 8.2 $264,130,931
There Will Be Bloo 2007 91% 8.2 $76,202,891
Titanic 1997 88% 7.9 $2,264,743,257
Whiplash 2014 94% 8.5 $49,558,728
Top/Bottom Rules

You might also like