Locked lesson.
About this lesson
Apply conditional formatting rules to columns in a table using Copilot.
Exercise files
Download this lesson’s related exercise files.
2.04 conditional-formatting - Exercise.docx53.1 KB 2.04 conditional-formatting- Exercise solution.docx
368.2 KB 02-04-Apply Conditional Formatting-Start.xlsx
772.8 KB 02-04-Apply Conditional Formatting-Finish.xlsx
773.4 KB 02-04-Sales Data Exercise-Start.xlsx
19.6 KB 02-04-Sales Data Exercise-Finish.xlsx
20.2 KB
Quick reference
Apply Conditional Formatting
Apply Conditional Formatting to cells in a table using Copilot.
When to use
We use Copilot to apply conditional formatting whenever we want to highlight cells in a table based on one or more pieces of criteria.
Instructions
Copilot can apply conditional formatting to data.
Highlight Cells
In this first example, we are going to use Conditional Formatting to highlight in yellow values greater than 1000 in the 'Units Sold' column.
- Type the prompt: 'Highlight in yellow all values in the Units Sold column that are greater than 1000'.
- Press Enter.
It's worth remembering that conditional formatting is just rules and we can edit any rule in the normal way. For example, maybe I want to change the highlight color or change '1000' to '2000'.
- From the Home tab, click the drop-down underneath Conditional Formatting.
- Click Manage Rules.
- Select the rule and click Edit to change.
Use a Suggested Prompt to Apply Conditional Formatting
Copilot will suggest prompts you might want to use. In this example, Copilot has suggested a prompt that applies bold formatting to the Top 10 values in the 'Operating Profit' column.
- Choose the suggested prompt.
- Press Enter.
Add Data Bars
We can use Copilot to add data bars to a column in the table. Data bars are in-cell bars that help us visualize the value in the cell.
- Type the prompt: 'Apply green data bars to the Operating Margin column'.
- Press Enter.
Format Cells in Bold and Red
Now, let's highlight in bold, red font the bottom 20 sales.
- Type the prompt: 'Apply bold formatting, red font to the bottom 20 values in the Total Sales column'.
- Press Enter.
The result is hard to see because the dataset is so large. We can check the formatting has been applied correctly by using a filter to filter by color.
- Click the Filter drop-down arrow at the top of the 'Total Sales' column.
- Select Filter by Color and choose Red.
This will show us the cells where Copilot has applied the formatting.
Login to downloadLesson notes are only available for subscribers.