Excel Practice Test

โ–ถ

Highlighting cells in Excel sounds like the most basic skill in the spreadsheet world, until your boss asks you to flag every overdue invoice in red, mark every duplicate name in yellow, and shade every other row so the quarterly report stops giving the auditor a headache. That is the moment you realise highlighting is not one feature. It is a whole toolbox. And most people only ever open the first drawer.

This guide unpacks the toolbox. You will learn how to highlight cells in Excel with a mouse, with the keyboard, with formulas, with conditional rules, and with macros. Some methods take half a second. Others take a minute but save you hours next month. We will mix the quick wins with the deeper tricks so you walk away faster than 90% of the people sharing your workbook.

One thing to set straight from the start. In Excel, "highlighting" can mean two very different things. It can mean selecting cells (the gray-blue marching ants around a range) so you can copy or edit them. Or it can mean formatting cells with a fill colour so they stand out on screen and on paper. Both matter. Both have their own shortcuts. We will cover them in that order, because you cannot format what you have not first selected.

Ready? Open a sheet, even a blank one, and follow along. The fingers learn faster than the eyes.

Selecting Cells: The Foundation of Every Highlight

Before you can paint a cell yellow you have to grab it. The cleanest way is the mouse. Click a single cell and it lights up with a thick green border. That is a one-cell selection. Click another cell and the first one lets go. Simple, but you will rarely stop at one cell in real work.

To select a continuous block, click the top-left corner, hold the mouse button, drag to the bottom-right, then let go. The whole rectangle now sits inside the green border with a pale blue overlay. That overlay is what tutorials usually mean when they say "highlighted." If you prefer not to drag, click the first cell, hold Shift, then click the last cell. The result is identical and your wrist will thank you over a long workday.

What about non-adjacent cells, like A1, C5, and F10 at the same time? Hold Ctrl (or Cmd on a Mac) while you click each cell. Excel keeps every click in the selection. This is gold when you want to colour or copy scattered cells without touching everything in between. Be careful though. One wrong click without Ctrl held down and the whole selection vanishes.

For a full row, click the row number on the far left. For a full column, click the column letter at the top. For the entire sheet, hit the tiny triangle in the very top-left corner above row 1, or press Ctrl + A. Press Ctrl + A twice if you are inside a table and want everything around it too.

Excel Highlighting at a Glance

3
Click types: single, range, multi
10+
Built-in conditional rules
8%
Red-green colour blind readers
1.6K
Monthly searches for the keyword

Keyboard Shortcuts That Replace Five Mouse Clicks

If you live inside Excel for more than an hour a day, learn the keyboard shortcuts for highlighting cells. They are the single biggest speed boost most users never claim. The mouse is friendly but slow. The keyboard is faster than your thinking, once your fingers memorise the pattern.

The core combo is Shift + arrow keys. Click a starting cell, hold Shift, then press right, left, up, or down. Each press extends the selection by one cell in that direction. Add Ctrl and the selection jumps to the next non-empty cell, which is brilliant for selecting an entire data column without scrolling. Try it in a column of 5,000 rows. The selection lands at the bottom in a single keystroke.

To select a whole row from the active cell, press Shift + Space. For a whole column, Ctrl + Space. To select the current region (the block of contiguous data around your cell), press Ctrl + Shift + *. That single combo replaces five careful mouse drags and never picks up extra rows by mistake.

One sneaky shortcut nobody teaches: F8. Press it once and Excel enters "Extend Selection" mode. The status bar at the bottom says so. Now you can click anywhere on the sheet and the selection grows from your starting cell to wherever you clicked, no Shift needed. Press F8 again to leave the mode. It feels old-school because it is, but it shines on a giant sheet where holding Shift while scrolling feels clumsy.

Speed Tip

Press F4 right after you fill a cell with colour. Excel treats it as 'repeat last action' and re-applies the same fill to whatever you select next. It is the fastest way to highlight scattered cells without re-opening the palette.

Filling Cells With Colour: The Visual Highlight

Once cells are selected, painting them is a single button. On the Home tab look for the paint bucket icon, usually with a tiny yellow bar underneath it. Click the small arrow next to it to open the colour palette. Pick a swatch and every selected cell fills with that colour. To remove the fill, choose "No Fill" at the top of the palette. To repeat the last colour you used, click the bucket itself (not the arrow). Excel remembers the previous choice.

The palette gives you ten theme colours, six standard colours, and a "More Colours" dialog with the full RGB picker. For a fast keyboard route, press Alt, H, H in sequence. The fill colour menu opens and you can move through swatches with the arrow keys. Once you know it, you will never reach for the mouse again.

Worried about contrast? Stick to light backgrounds for big blocks of cells. Pale yellow, soft green, light blue. Reserve red and dark colours for true alerts. Excel will not change the font automatically, so a dark blue fill behind black text becomes unreadable on a projector. If you must use a dark fill, change the font colour to white in the same step using the "A" with a colour bar two icons to the left of the bucket.

Working with a printer that only does grayscale? Test before you print 200 pages. Bright yellow turns into pale gray and the highlight you spent twenty minutes setting up vanishes. For grayscale-friendly reports, use patterns instead of fills: right-click selected cells, choose Format Cells, go to the Fill tab, and pick a pattern style from the dropdown. Stripes and dots survive black-and-white printing better than soft hues.

Four Layers of Highlighting Skill

MousePointer2 Layer 1: Mouse โ€“ Beginner

Click, drag, fill bucket. Friendly but slow. Good for one-off marks on a single report.

clickdragfill
  • Speed: Slow
  • Curve: Easy
Keyboard Layer 2: Keyboard โ€“ Intermediate

<kbd>Shift</kbd> arrows, <kbd>Ctrl</kbd>+<kbd>Space</kbd>, <kbd>Alt</kbd>,<kbd>H</kbd>,<kbd>H</kbd>. Cuts selection time by 70% once memorised.

shortcutF8alt-h-h
  • Speed: Fast
  • Curve: Medium
Wand2 Layer 3: Conditional โ€“ Advanced

Rules, not paint. The sheet highlights itself as data changes. Best for dashboards and live reports.

rulesformulaauto
  • Speed: Auto
  • Curve: Steeper
Code2 Layer 4: VBA Macros โ€“ Power

Reusable code that highlights on demand. The escape hatch when the GUI runs out of steam.

vbamacroautomation
  • Speed: Reusable
  • Curve: Steepest

Conditional Formatting: Highlight That Thinks for You

This is where Excel stops being a colouring book and starts behaving like a data tool. Conditional formatting changes the fill of a cell based on its value or on a formula. The cells highlight themselves and re-highlight whenever the data changes. Once you set the rules, you can ignore them for months and the sheet stays accurate.

The quickest entry point is Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules. The submenu lists greatest hits: greater than, less than, between, equal to, text that contains, a date occurring, and duplicate values. Pick one, type your threshold, choose a fill colour, and every matching cell turns that colour instantly. To highlight all duplicates in a column, select the column, choose Duplicate Values, click OK. Done in three clicks.

For row-level highlights, the menu is not enough. You need a formula rule. Select the range, choose New Rule โ†’ Use a formula to determine which cells to format, and type something like =$D2="Overdue" with the active cell at row 2. The dollar sign in front of $D locks the column so the rule reads column D across the whole row. Click Format, choose a fill, and every row where column D shows "Overdue" lights up. Change a single value in column D and the colour follows. That is the muscle you are buying.

Data bars and colour scales live on the same menu. Pick a numeric range, choose Data Bars, and tiny in-cell bars appear, length-scaled to the value. Choose Colour Scales for a heat-map effect, green for high, red for low, yellow in the middle. These are perfect for at-a-glance dashboards because they highlight cells without screaming at the reader. For more advanced tricks see the conditional formatting in excel guide.

Take the FREE Excel Practice Quiz

Highlight Every Other Row Without Manual Painting

"Zebra striping" is the single most requested highlight effect in office reports. Done by hand it is misery: select row 2, fill grey, select row 4, fill grey, repeat 200 times. Two formulas remove the misery. Both go inside a conditional formatting formula rule.

The first formula is =MOD(ROW(),2)=0. It returns TRUE for every even row, so even rows get the fill. Want odd rows instead? Use =MOD(ROW(),2)=1. Apply the rule to your data range and adjust the fill colour. The effect updates if you sort the data or insert new rows. No re-painting, ever.

The second formula is =ISEVEN(ROW()), which reads cleaner and does the same job. Some people prefer it because it explains itself when a colleague opens the workbook next month. Either way the trick works on filtered tables too, though Excel's built-in Format as Table command also offers banded rows out of the box. Hit Ctrl + T, accept the defaults, and zebra stripes appear. The alternate row color excel walkthrough has more variations like banding every third row or shading by group.

One catch: banded rows from Format as Table are a table style, not conditional formatting. They follow the table even if the data sorts, but they will not survive being copied as values into a new workbook. Conditional formulas survive a copy if you paste with formatting. Choose the route that matches your downstream workflow.

Pick the Right Highlight Method

๐Ÿ“‹ One cell, one colour

Click the cell. On the Home tab click the paint bucket arrow. Pick a swatch. Total time: three seconds. Press F4 on the next selection to repeat the same colour.

๐Ÿ“‹ Whole row by value

Select the data range. Open Conditional Formatting โ†’ New Rule โ†’ Use a formula. Type =$B2="Overdue" (replace as needed). Choose a fill. Rule re-applies on every change to column B.

๐Ÿ“‹ Every other row

Select the table. New conditional rule with formula =MOD(ROW(),2)=0. Pick light grey. Stripes appear and survive sorts. Or just press Ctrl+T for built-in banded rows.

๐Ÿ“‹ Find duplicates

Select the column. Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values. Click OK. Every repeat lights up red instantly and updates as you add rows.

Highlight Based on Another Cell's Value

The single most powerful highlight pattern in Excel is "colour cell A based on what is in cell B." Sales managers use it to flag deals that missed quota. Teachers use it to flag students who scored below 60. HR uses it to flag birthdays in the next 7 days. Once you see the trick, you will use it weekly.

Imagine column B holds order amounts and you want to highlight every order under $500 in light red. Select B2:B500. Open Conditional Formatting โ†’ New Rule โ†’ Use a formula. Type =B2<500. Excel automatically applies the rule across the whole range, comparing each cell to 500. Choose your fill and click OK. The red cells appear and update as the numbers change.

The same logic works across columns. To shade the entire row when the amount is below $500, select A2:F500, write =$B2<500, and apply. The locked column reference makes the rule look only at column B while painting every column in the row. This is the same dollar-sign trick used in the overdue invoice example above. Once you see it, you spot it everywhere.

Need dates? =A2<TODAY() highlights every date in the past. =A2=TODAY() highlights today. =AND(A2>=TODAY(),A2<=TODAY()+7) highlights anything in the next week. Combine those with row-level shading and you have a self-updating reminder dashboard, no macros required.

Common Highlighting Mistakes (and How to Dodge Them)

Mistake one: highlighting after you sort. People apply a fill colour to specific rows, then sort the data, then wonder why the colour now sits on the wrong rows. Fill colours travel with the cell, not the value. If you need the colour to stick to a meaning, always use conditional formatting based on the value, not a manual fill.

Mistake two: too many rules. Conditional formatting can stack dozens of rules per workbook, and that overhead slows the file down on large datasets. Open Conditional Formatting โ†’ Manage Rules, scope it to "This Worksheet," and trim anything you no longer need. A workbook with 200 stale rules can take minutes to recalculate.

Mistake three: copying highlights without thinking. Copy a coloured cell to a new sheet and the fill comes with it, but conditional formatting may or may not, depending on whether you copied the cell or just its value. Use Paste Special โ†’ Formats when you want the highlight rule to follow. Use Paste Special โ†’ Values when you want clean data with no rules attached.

Mistake four: ignoring colour blindness. About 8% of men cannot tell red from green. If your only highlight is "good is green, bad is red," you are losing an entire group of readers. Pair colours with icons (red exclamation marks, green check marks) or add a text label in a neighbouring column. Excel has built-in icon sets under Conditional Formatting โ†’ Icon Sets for exactly this reason.

Before You Ship the Highlighted Report

Test the fill colours on a black-and-white printer if anyone will print the file.
Pair every red or green highlight with an icon or text label for colour-blind readers.
Use <kbd>Ctrl</kbd>+<kbd>End</kbd> to jump to the last used cell. If it is far past your data, conditional formatting will lag.
Open Manage Rules and delete stale or duplicate conditional formats before saving.
Save the file with cell A1 selected so the next opener does not inherit a giant blue range.

Highlighting With a Macro: When the GUI Runs Out

For repeatable highlight jobs, a tiny macro saves hours. Open the VBA editor with Alt+F11, insert a module, and paste a short Sub that loops the selection and sets Interior.Color = vbYellow on cells above 500. Run it on your range and every match turns yellow. The macro is non-volatile, so it does not slow the workbook the way fifty conditional rules might.

Extend the skeleton to highlight by date, text match, or a score from another worksheet. Once the macro lives in your Personal Macro Workbook, it follows you to every file you open. The how to use excel hub links to deeper VBA tutorials when you are ready.

Putting Highlighting to Work

Highlighting in Excel is a layered skill. Mouse-and-bucket. Keyboard shortcuts. Conditional formatting. VBA. Most workplace problems get solved at layer two or three. Layer four is for the Monday report you are tired of doing by hand.

The fastest way to embed all four is repetition. Pick one sheet you touch every day and apply each layer in turn. By next week you will move through the file at twice the speed and colleagues will ask how. That is the moment to send them this article.

Test Your Excel Skills Now

Manual Fill vs Conditional Formatting

Pros

  • Instant: three clicks total
  • Survives every copy-paste, even to plain values
  • No formula knowledge needed
  • Works in every Excel version since 2003

Cons

  • Self-updates when data changes (huge for dashboards)
  • Can slow large workbooks when overused
  • Lost if pasted as values to a new sheet
  • Requires formula skill for advanced row rules
Try the Excel Functions Quiz

Excel Questions and Answers

How do I highlight cells in Excel without using the mouse?

Use the keyboard. Click a starting cell, hold Shift, then press arrow keys to extend the selection. To open the fill colour menu without the mouse, press Alt, H, H in sequence and use the arrow keys to choose a swatch. Press Enter to apply. With practice this beats the mouse by several seconds per highlight.

Why does my highlight disappear when I sort the data?

Manual fill colours travel with the cell, not the value. After a sort the colour stays where it was relative to the row position. If you want the highlight to follow a value, use conditional formatting instead. Conditional rules compare each cell to a condition every time the sheet recalculates, so they always paint the correct rows.

Can I highlight an entire row based on one cell's value?

Yes, with a conditional formatting formula rule. Select the rows you want to colour, choose New Rule โ†’ Use a formula, and write something like =$B2="Overdue". The dollar sign locks the column reference so the rule looks at column B while painting every column in the row. Adjust the cell reference to match the active cell when you open the rule dialog.

How do I highlight duplicates in Excel?

Select the column or range you want to check. On the Home tab click Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values. Pick a fill colour from the dropdown and click OK. Every repeat value lights up immediately. The rule updates whenever you add or remove rows, so you do not need to rerun it.

What is the shortcut to fill a cell with colour in Excel?

There is no single one-keystroke shortcut, but Alt, H, H opens the fill colour menu. After choosing a colour once, press F4 on the next selection to repeat the same fill. If you assign a macro to a button or hotkey, you can collapse the whole job to one keystroke.

How do I remove highlighting from cells?

Select the cells. On the Home tab click the paint bucket arrow and choose No Fill. For conditional formatting, open Conditional Formatting โ†’ Clear Rules โ†’ Clear Rules from Selected Cells (or from the whole sheet). To remove both at once, copy a blank cell, then paste-special the formatting onto your range using Paste Special โ†’ Formats.

Can I highlight every other row automatically?

Yes. Select your data, open Conditional Formatting โ†’ New Rule โ†’ Use a formula, and enter =MOD(ROW(),2)=0 for even rows or =ISEVEN(ROW()) for the same effect with clearer code. Pick a soft fill colour and click OK. The stripes survive sorts, inserts, and deletes. Alternatively press Ctrl+T to convert your range to a table with built-in banded rows.

How do I count highlighted cells in Excel?

Excel cannot count by fill colour with a built-in formula, but you can write a short VBA function. Open the VBA editor with Alt+F11, add a module, and define a function that loops the range and counts cells whose Interior.Color matches a reference. A simpler workaround: if your highlights come from conditional formatting based on a value, use COUNTIF on the value instead. That avoids VBA entirely.
โ–ถ Start Quiz