Google Sheets - Conditional Formatting

Learn Google Sheets & Excel Spreadsheets
29 Apr 201915:01

Summary

TLDRThis video explains the basics of conditional formatting, a feature that allows you to format cells based on specific conditions. It demonstrates how to highlight cells with values above $12,000, apply multiple formatting rules, and dynamically adjust formatting when data changes. The tutorial also covers advanced techniques like using cell references, applying color scales, and creating rules based on formulas or row-by-row comparisons. Overall, the video serves as an introduction to conditional formatting, offering tips for efficient data visualization.

Takeaways

  • 🖥️ Conditional formatting is used to apply specific formatting to cells based on certain conditions.
  • 🔍 To apply conditional formatting, select the area, go to 'Format', and choose 'Conditional Formatting'.
  • 🎨 You can highlight cells based on various conditions such as being greater than a specific value, empty, or not empty.
  • 📈 The script demonstrates how to highlight numbers above $12,000 using 'greater than' as the condition.
  • 🌟 Conditional formatting is dynamic, meaning it updates automatically when the cell values change.
  • 🗑️ To remove conditional formatting, go back to 'Conditional Formatting' and click the trash icon next to the rule.
  • 🚫 You cannot apply multiple conditional formats to the same area; it will only show the highest priority rule.
  • ✅ The script shows how to use cell references in conditional formatting to make it dynamic, such as referencing a cell with a value that changes.
  • 📊 It's possible to apply conditional formatting based on formulas, not just static values, which allows for more complex and flexible rules.
  • 📈 The video covers using color scales to color-code cells based on their values relative to the highest and lowest values in a range.
  • 🔄 The order of conditional formatting rules matters, as it determines which rule takes precedence when multiple rules are applied to the same range.

Q & A

  • What is conditional formatting in Excel?

    -Conditional formatting in Excel is a feature that allows you to apply specific formatting to cells based on certain conditions, such as values being above or below a certain threshold.

  • How do you apply conditional formatting to highlight cells above a certain value?

    -To highlight cells above a certain value, you select the range of cells, go to the 'Format' menu, choose 'Conditional Formatting', select 'Greater Than', and enter the value to compare against.

  • What are the different types of conditions available in conditional formatting?

    -There are many conditions available in conditional formatting, including cell values being greater than, less than, equal to, between, not between, and even formatting based on specific text or dates.

  • How can you dynamically change the value that conditional formatting is based on?

    -You can dynamically change the value that conditional formatting is based on by using a cell reference instead of a static value. This way, if the value in the referenced cell changes, the conditional formatting will update accordingly.

  • What is the purpose of the 'greater than or equal to' option in conditional formatting?

    -The 'greater than or equal to' option in conditional formatting allows you to highlight cells that are not only greater than a certain value but also equal to that value.

  • Can you apply multiple conditional formatting rules to the same range of cells?

    -Yes, you can apply multiple conditional formatting rules to the same range of cells. The order in which the rules are applied determines which formatting takes precedence when there are conflicts.

  • How do you remove conditional formatting from a cell or range of cells?

    -To remove conditional formatting, you can go back to 'Conditional Formatting' in the 'Format' menu, select the rule you want to remove, and click the trash icon to delete it.

  • What is a color scale in conditional formatting and how is it used?

    -A color scale in conditional formatting is a gradient of colors applied to a range of cells based on their values. It can be used to visually represent the distribution of data, with the lowest values having one color and the highest values having another.

  • How can you use formulas in conditional formatting to compare values in different cells?

    -You can use formulas in conditional formatting to compare values in different cells by using cell references in the formula field. For example, to highlight cells where the actual number is greater than the expected number, you would use a formula like '=A2 > B2'.

  • What is the significance of using absolute and relative cell references in conditional formatting?

    -Absolute cell references (using $ signs) are used when you want the same cell to be referenced regardless of where the formatting is applied. Relative cell references are used when you want the reference to change based on the position of the cell in the range being formatted.

Outlines

00:00

🎨 Introduction to Conditional Formatting

This paragraph introduces the concept of conditional formatting in spreadsheets, which is a feature that allows users to apply specific formatting to cells based on certain conditions. The video demonstrates how to highlight cells with values above $12,000 by selecting the range, navigating to the 'Conditional Formatting' option, and choosing the 'greater than' condition with a value of 12,000. It also explains how to customize the formatting style, such as background color, font color, and boldness. The dynamic nature of conditional formatting is emphasized, where changes in cell values automatically update the formatting. The paragraph concludes with instructions on how to remove conditional formatting and the concept of applying multiple conditions to the same range, which are applied in the order they were created.

05:01

🔢 Advanced Conditional Formatting Techniques

The second paragraph delves into more advanced uses of conditional formatting, such as referencing a cell value instead of hard-coding a number. It illustrates how to create a rule that formats cells based on a value in another cell (e.g., highlighting numbers greater than the value in cell F1). The importance of using absolute cell references (e.g., $F$1) is highlighted to ensure the rule applies correctly throughout the selected range. The paragraph also explores using formulas for conditional formatting, like highlighting values above the average of a set of numbers. It discusses the option to create color scales based on cell values and how to adjust the priority of multiple conditional formats applied to the same range.

10:02

📊 Applying Conditional Formatting to Data Comparisons

The final paragraph showcases how to use conditional formatting for comparing data, such as highlighting cells where actual numbers exceed expected numbers. It explains the process of setting up a rule that compares values cell-by-cell (e.g., comparing the value in column B to the value in column A for each row). The paragraph also covers the use of color scales to represent data distribution, with options to customize the colors for minimum, midpoint, and maximum values. The video emphasizes the flexibility of conditional formatting, allowing for dynamic updates as data changes and the ability to create custom rules based on cell references and formulas.

Mindmap

Keywords

💡Conditional Formatting

Conditional formatting is a feature in spreadsheet applications that allows cells to be automatically formatted based on the cell's value or the result of a formula. In the video, the concept is central as it demonstrates how to apply different formatting styles to cells that meet specific criteria, such as highlighting numbers above $12,000. This feature is crucial for visualizing data patterns and making data analysis more intuitive.

💡Formatting Rules

Formatting rules in the context of conditional formatting define the conditions under which a cell's appearance changes. The video explains how to set up these rules, such as 'greater than' a certain value, and apply them to a range of cells. This is showcased when the presenter sets a rule to highlight cells with values above $12,000, illustrating how formatting rules can be tailored to meet specific analytical needs.

💡Cell References

Cell references are used to point to specific cells within a spreadsheet. The video script mentions using cell references in conditional formatting to tie the formatting condition to a cell's value. For instance, the presenter refers to cell F1 when setting a condition to highlight values above what is stored in that cell, demonstrating the dynamic nature of conditional formatting.

💡Absolute Reference

An absolute reference in spreadsheets is a type of cell reference that does not change when the formula is copied to another cell. The video explains the importance of using an absolute reference (e.g., $F$1) when setting up conditional formatting that should remain tied to a specific cell value regardless of where it's applied. This is crucial for maintaining the integrity of conditional formatting across different parts of a spreadsheet.

💡Dynamic Application

The term 'dynamic application' in the video refers to the way conditional formatting automatically updates when the underlying data changes. The script illustrates this by showing that if a cell's value changes to meet the conditional format's criteria, the formatting is applied or removed accordingly. This feature is key to keeping spreadsheets up-to-date and visually representing the most current data.

💡Color Scales

Color scales are a type of conditional formatting that applies a gradient of colors across a range of cells based on their values relative to the highest and lowest values in the range. In the video, the presenter uses color scales to visually represent data distribution, such as highlighting percentages from red (lowest) to green (highest), providing a quick visual summary of data trends.

💡Formulas

Formulas in spreadsheets are used to perform calculations and can also be used within conditional formatting to define the conditions for formatting. The video script includes examples of using formulas to calculate averages and to compare actual numbers with expected numbers, showcasing the versatility of formulas in creating complex and meaningful conditional formatting rules.

💡Highlighting

Highlighting in the context of the video refers to the visual emphasis placed on cells that meet certain conditions through the use of colors or font styles. The script describes how to use conditional formatting to highlight cells above a certain value, such as $12,000, to make them stand out. This is a common use of conditional formatting to draw attention to important data points.

💡Data Visualization

Data visualization in the video is achieved through the use of conditional formatting to represent data in a visually understandable format. By applying different colors and styles to cells based on their values, the presenter enhances the spreadsheet's ability to convey information at a glance, which is a fundamental aspect of data analysis and presentation.

💡Comparison Operators

Comparison operators are used in formulas to compare values and return true or false based on the comparison. In the video, the presenter uses comparison operators like 'greater than' to set conditions for conditional formatting. For example, setting a rule to highlight cells where the actual number is greater than the expected number, demonstrating how these operators are integral to creating conditional formatting rules.

Highlights

Introduction to conditional formatting and its purpose of formatting cells based on a condition.

How to apply conditional formatting to highlight numbers above a specific value, such as $12,000.

Accessing the conditional formatting feature through the 'Format' menu.

Explanation of the default range selection for conditional formatting.

Selection of the 'greater than' condition to highlight values above a specified amount.

Demonstration of real-time changes in formatting as conditions are set.

Customization of the cell's appearance through background color, font color, and bold styling.

Understanding that conditional formatting is dynamically applied and updates as cell values change.

Instructions on how to remove conditional formatting if needed.

Capability to apply multiple conditional formats to the same range with different conditions.

Importance of the order of conditional formats and how it affects the final appearance.

Tying conditional formatting to a cell value using a cell reference for dynamic changes.

Using absolute cell references to ensure conditional formatting works correctly with cell references.

Example of applying conditional formatting based on a calculated average value.

Explanation of how to use formulas in conditional formatting for dynamic results.

Demonstration of conditional formatting for values between two specified numbers.

Use of color scales in conditional formatting to represent data visually.

Adjusting color scales to reflect different data points, such as minimum, midpoint, and maximum.

Applying conditional formatting to compare actual numbers against expected numbers in a side-by-side comparison.

Final thoughts and a call to action for viewers to subscribe for more content.

Transcripts

play00:00

alright so in this video let's talk

play00:01

about conditional formatting so

play00:03

conditional formatting is when you want

play00:06

to format things based on a condition

play00:08

pretty much the way it sounds so for

play00:10

example we might want to highlight every

play00:13

number in this area that's above $12,000

play00:17

right so to do something like that what

play00:20

do you do you just select the area go

play00:22

under format and scroll down to

play00:25

conditional formatting we click on

play00:27

conditional formatting we get this

play00:30

screen so this screen shows us the range

play00:32

to which we're applying conditional

play00:34

formatting which is by default what we

play00:36

had selected so that should we find if

play00:38

we did our selection right so if I

play00:40

scroll down here I have different

play00:42

conditions so tons of conditions to

play00:45

choose from if I open this there is a

play00:48

big list we could highlight empty cells

play00:51

or cells that are not empty in this

play00:54

particular case we're trying to

play00:55

highlight every number that's above

play00:57

12,000 so I'm gonna scroll down until I

play01:01

find this option greater than so we can

play01:04

do greater than greater than or equal to

play01:06

if we want to include that number in our

play01:09

highlighted numbers that 12,000 exactly

play01:12

will do greater than or equal to I'm

play01:14

just gonna do greater than so I'll do

play01:16

this and then the value and here I'm

play01:19

gonna type 12,000 now you can already

play01:23

see what's happening in the background

play01:25

so we have C green for 12,000 and the

play01:29

rest stays what it is now then you

play01:31

select the formatting so you just choose

play01:34

how do you want that cell to look so if

play01:37

you don't want to be green you want a

play01:38

different background color you just go

play01:41

ahead and choose that if you want a

play01:43

different font color you go ahead and

play01:45

choose your different font colors you

play01:48

can also make it bold as you can see or

play01:51

basically just apply some styling to

play01:54

your cell so once we're done we hit done

play01:57

and we have successfully applied

play01:59

conditional formatting so if I X out of

play02:02

the screen and go here we'll see every

play02:05

cell above 12,000 is highlighted in this

play02:07

formatting now conditional formatting is

play02:10

dynamically applied to your cells what

play02:13

that really mean

play02:13

uses that if this number changes to

play02:16

something that's less than 12,000 it's

play02:19

just gonna lose that formatting I'm

play02:22

gonna undo that command Z and the same

play02:24

way if we have a cell that gets a number

play02:27

that's greater than 12,000 we will also

play02:31

apply that formatting dynamically to the

play02:33

range that we used so I'm going to undo

play02:35

that so that's basics of conditional

play02:38

formatting basically highlight the array

play02:40

1 conditional formatting for format

play02:42

conditional formatting and start looking

play02:45

for the option you want now if you

play02:47

decide you want to remove conditional

play02:49

formatting you pretty much do the same

play02:51

thing so if we go back to conditional

play02:53

formatting see the rule we did apply

play02:56

shows up if you want to change it maybe

play02:58

you want to change the formatting or

play03:00

something like that you go here and

play03:02

click on this and start changing

play03:04

whatever you need to change I'm gonna X

play03:07

out of that otherwise if you just want

play03:09

to get rid of it you go back to

play03:11

conditional formatting and you can just

play03:13

highlight the rule and sit is little

play03:15

like trash icon we click on that and the

play03:19

conditional formatting is gone we can't

play03:21

apply multiple conditional formatting to

play03:23

the same area so let me show how that's

play03:26

gonna work let's say I do conditional

play03:29

formatting for all numbers again above

play03:36

12,000 I'll do this color maybe I'll

play03:39

change it to blue the way we had that's

play03:42

fine done and then I'm gonna do another

play03:45

rule so I'm gonna add another rule to

play03:48

the same range and again choose greater

play03:51

than and this time I'm gonna choose to

play03:55

apply that to every cell that's greater

play04:01

than 11,000 I hit done now we have two

play04:06

conditional formatting applied to the

play04:09

same range of numbers and you can see

play04:12

everything about 12,000 is blue and

play04:14

everything above 11,000 it's yellow now

play04:19

the reason it works this way is because

play04:21

these conditional formatting I applied

play04:23

them in that same particular order that

play04:26

I did

play04:27

now if I didn't do them that particular

play04:29

order what could have happened is that

play04:30

this yellow could have appeared above

play04:34

the other ones so let me just show you

play04:37

what I mean by that so see here there is

play04:40

this order you can change so if you

play04:42

rolled over you'll see this with little

play04:43

dots I can drag this and put it below

play04:46

and now because this blue condition

play04:49

appears as a lower priority in our list

play04:52

it's yellow that overrides the blue and

play04:56

we cannot really see the blue happening

play04:58

so you sometimes might want to just

play05:00

change this orders by dragging them to

play05:04

choose the priority which one is the top

play05:06

level the second level third level and

play05:08

so on and you can keep adding more if

play05:10

necessary I'm gonna delete these two

play05:13

together another interesting thing about

play05:16

conditional formatting is that instead

play05:18

of hard-coding our number we can also

play05:22

apply conditional formatting with a cell

play05:25

reference so let me show you what I mean

play05:28

so let's say I want to go here and type

play05:30

a number let's say 12,000 maybe I'll

play05:33

format it to make it look good that

play05:35

really doesn't matter now what I'm gonna

play05:37

do I'm gonna select these cells I'm

play05:39

gonna go back to my conditional

play05:41

formatting and then again apply the rule

play05:45

I'm gonna say greater than and I'm gonna

play05:49

select the value so this is where I used

play05:51

to type 12,000 now instead what I'm

play05:54

gonna do I'm gonna refer to this cell

play05:56

this cell is f1 that's where the 12,000

play06:00

number is so I'm gonna say it equals 2

play06:03

so it has to be formula f1 and what I'm

play06:07

gonna do now you'll see that if you look

play06:09

at a background this isn't working the

play06:12

way you would have thought it should so

play06:14

it's not really doing f1 it's doing

play06:17

something so it's not really

play06:19

highlighting the right thing so to make

play06:20

this work we have to do an absolute

play06:22

reference so we'll do dollar F dollar 1

play06:25

and that way now you'll see every number

play06:28

above 12,000 is highlighted so I'm gonna

play06:30

choose some styling here hit done X out

play06:34

of this so what happened right now I

play06:36

tied my conditional formatting to the

play06:38

cell value what that means is that

play06:41

if I go back here and change the cell

play06:43

value to a different value let's say I

play06:44

do

play06:45

13,000 see my conditional formatting

play06:48

will dynamically change because now

play06:51

we're highlighting everything above this

play06:52

13,000 so now we can tie it to a cell

play06:56

now that opens a lot of possibilities

play06:58

maybe we want to just give our

play07:02

formatting to everything that's above

play07:04

average so if we wanted to do that we

play07:06

would just calculate an average value

play07:09

here so we'll do average of all of this

play07:13

and that should calculate the average

play07:16

and then we'll highlight everything

play07:18

that's greater than the average so

play07:20

basically we'll color code everything

play07:22

that's above average now if you want to

play07:24

do above average without actually having

play07:27

this cell with the value of that well

play07:31

you could do you could just use that

play07:33

formula that gives you the average I'm

play07:36

gonna hit escape in your conditional

play07:39

formatting so if I go back and edit that

play07:43

conditional formatting now instead of

play07:45

tying that to this value in f1 I can say

play07:48

this is gonna be my formula and you have

play07:51

to remember that these need to be locked

play07:54

so I have to lock to absolute values so

play07:59

if I do this that will still work that

play08:01

will give us everything about average it

play08:05

done but now it's not really tied to the

play08:09

cell so now as this values change our

play08:12

average will change and we'll highlight

play08:15

everything above average so for example

play08:18

if this number goes really high see now

play08:23

our average goes a lot higher so the

play08:25

only number that's above average is this

play08:27

one on do command Z that gets us back to

play08:30

this so basically the idea of this is

play08:33

that we can use any formula and the

play08:37

result of that formula could be now tied

play08:39

to our conditional formatting I'm gonna

play08:43

remove that so let me also do an example

play08:46

of like between type of things you could

play08:48

have two numbers and you could say I

play08:50

want everything between this two numbers

play08:53

to be highlighted

play08:54

in that color so let's do percentages so

play08:58

I'm gonna do ten percent and fifty

play09:01

percent and then I'm gonna select this

play09:04

area go under format conditional

play09:06

formatting and then we'll choose the

play09:10

option be tween and then the value the

play09:16

first one is going to be a formula I'm

play09:17

going to say equals to this which is f1

play09:20

and it needs to be an absolute reference

play09:22

so dollar F dollar one and then I'm

play09:25

gonna say the second one is dollar F

play09:28

dollar two which is basically a

play09:31

reference to this cell and choose format

play09:34

Inc whatever that's gonna be I'm just

play09:36

gonna leave it default done and now we

play09:39

have everything between this numbers

play09:41

highlighted in that particular color

play09:44

same idea and again this could be a

play09:47

formula that calculates some sort of

play09:50

percentage and the key thing here it can

play09:52

be any formula right so I'm gonna delete

play09:55

that that's gone I'm gonna also go back

play09:58

and delete my conditional formatting

play09:59

from here I'm gonna delete all of that

play10:02

from here that's gone so looking good so

play10:07

taking this to the next level let me go

play10:09

to this other tab let's say we have

play10:13

something like this we have our expected

play10:15

numbers we have our actual numbers what

play10:17

we want to happen if our actual number

play10:20

is above our expected number we want to

play10:23

highlight that in red so now it's not

play10:27

just one number I'm tying this to I want

play10:31

this to basically work row by row like

play10:35

this so to do something like that what

play10:37

I'm gonna do I'm gonna select the area

play10:41

that's gonna get the formatting and I'm

play10:45

gonna go in there format and I'm gonna

play10:47

do conditional formatting so here I'm

play10:50

gonna scroll down and choose greater

play10:53

than option I want to make sure that

play10:56

this happens when the value of that cell

play10:59

is greater than the cell on the left so

play11:02

what I'm gonna do as a value I'm gonna

play11:04

do a formula equals b2 how

play11:08

this time unlike the previous time I'm

play11:11

not going to actually lock as an

play11:15

absolute reference because if I lock

play11:17

that as an absolute reference we will

play11:19

basically just compare if every single

play11:22

number here is greater than this first

play11:26

number in a list what I want to do I

play11:28

want to do robot role comparison so what

play11:31

I do I just go and select b2 which is

play11:34

the same value in the first cell in this

play11:40

highlighted area so when I highlighted

play11:41

this range see that's in the second row

play11:44

so therefore when I do my comparison I

play11:47

do it with that second row in the column

play11:50

that I need that comparison to be done

play11:52

and then I leave this as a relative

play11:54

reference so now I can just give this

play11:57

some sort of color so now if I go here

play12:01

and this number is actually lower let's

play12:04

say then this number let's type

play12:06

something like that see that goes like

play12:09

that so if I do 10,000 that loses

play12:13

because this is less than that

play12:15

or 11,000 should have the same effect

play12:18

it's still less than this so with

play12:22

conditional formatting you sometimes

play12:24

also might want to do some color scales

play12:27

so if I select all of these percentages

play12:31

here on the right I go on the format

play12:33

conditional formatting and instead of a

play12:36

single color which is what I've been

play12:39

doing so far I'm gonna move to this

play12:41

color scales so with this color scales

play12:44

we can now basically just do like the

play12:48

lowest value with one color and the

play12:51

highest value with a different color

play12:53

right you can see we have this preview

play12:56

so see the minimum now gets the green

play12:58

color and a maximum gets whatever this

play13:01

white color is so let's say if this

play13:05

percentage is positive you want to make

play13:10

that green right in that case you would

play13:12

switch this to whatever you want so

play13:16

let's say green and then a lower numbers

play13:19

you would do let's say

play13:20

read so now we go from red to green with

play13:25

a color scale and red would be the

play13:28

lowest number and the greenest number

play13:31

would be the highest number here in the

play13:33

list right and you might want to play

play13:35

with this to see what you like and then

play13:38

you could also do like a midpoint if you

play13:40

want it the midpoint for you is a number

play13:44

which is let's say zero and zero would

play13:47

be the midpoint and you could choose

play13:49

what color you want for your midpoints

play13:52

and kind of decide how the color scale

play13:54

works from that point on or in this

play13:58

particular case when our actual is

play14:00

larger than our expected that's actually

play14:03

for us let's assume it's a bad thing so

play14:06

we're gonna switch this green color

play14:10

we'll go here or maybe we'll do blue for

play14:14

this and for this we'll go red and then

play14:18

you can decide whether you wanted

play14:19

midpoint or not so I can do none and go

play14:22

with this one for me midpoint kind of

play14:25

makes sense I'll do something like that

play14:27

and I'll say zero is a good midpoint for

play14:31

me so yellow or we could go like green

play14:35

or something I don't know and that's our

play14:37

color scales so also useful sometimes

play14:40

done close here we go so that pretty

play14:45

much covers the basics of conditional

play14:47

formatting from this point on you might

play14:50

want to dive into like conditional

play14:51

formatting good formulas which we'll do

play14:54

in a different video but for now thanks

play14:57

for watching please subscribe and I'll

play14:59

see you next one

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Conditional FormattingSpreadsheet TipsData AnalysisExcel TutorialSpreadsheet FormattingHighlight CellsDynamic FormattingCell ReferencesColor ScalesFormulas
¿Necesitas un resumen en inglés?