0Pricing
Excel Formulas Academy · Lesson

KPI Cards and Conditional Highlights

Create headline metrics and rules that flag important values.

KPI Cards and Conditional Highlights is a free Excel Formulas Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What a KPI Card Is

A KPI card is a single headline number that tells the reader the one thing they most need to know: total revenue, orders today, average order value. Dashboards usually open with a row of these cards.

A good card combines three parts: a clear label, the big number from a formula, and often a small comparison such as change versus last period.

In this lesson you will build KPI numbers with aggregation formulas, add period-over-period comparisons, and use conditional logic to highlight values that need attention.

The Headline Number

Start with the core metric. Total revenue from a Sales sheet is just a SUM over the amount column.

Place this in the card's value cell:

For an order count, use COUNTA on a column that always has a value, like an order ID. The card label, a plain text cell above it, names what the number means. Keep each card to one number so it reads instantly.

=SUM(Sales!C2:C500)

Average Order Value Card

Many KPIs are ratios. Average order value divides total revenue by order count. Build it from two aggregates.

One compact way uses AVERAGE directly:

If you prefer to derive it, divide your total card by your count card. Either way, this card now shows the typical sale size and updates whenever the data changes.

=AVERAGE(Sales!C2:C500)

Comparing to a Target

A KPI is more meaningful next to a goal. Suppose your monthly revenue target sits in cell B1. Compute how far above or below target you are.

The variance is current minus target:

You can also express it as a percentage of target with =SUM(Sales!C2:C500)/B1. Showing 1.12 tells the reader you hit 112 percent of goal. Comparison transforms a raw number into a story.

=SUM(Sales!C2:C500) - B1

Period-Over-Period Change

Readers love to see momentum. Compute the percentage change from a previous period. Say this period's total is in D2 and last period's is in D3.

The growth formula is:

If this period is 120 and last was 100, you get 0.2, meaning 20 percent growth. Format the cell as a percentage. A small up or down indicator like this turns a flat card into a trend at a glance.

=(D2 - D3) / D3

A Text Trend Indicator

You can show direction with words or symbols using IF. Read the change cell and pick a label.

This returns an up or down marker with the percentage:

When the change in E1 is positive you see an upward note; otherwise a downward one. Joining text and a formatted number keeps the card compact and readable without needing a chart.

=IF(E1>=0, "Up " & TEXT(E1,"0.0%"), "Down " & TEXT(ABS(E1),"0.0%"))

Highlighting With Conditional Formatting

Conditional formatting changes a cell's color based on a rule, so important values jump out. Select your KPI cells, open Conditional Formatting, and add a rule driven by a formula.

To flag any card below target in red, use a formula rule like:

Cells where the rule is TRUE get the format you choose. This is how a dashboard turns red when sales miss goal and green when they beat it, without anyone reading the numbers closely.

=B2 < $B$1

Flagging Values Inside Formulas

Sometimes you want the flag as text in the cell itself, not just color. IF with comparison operators creates a status word.

To label performance against target:

This shows On Track when you meet goal and Behind when you fall short. A status column like this pairs well with conditional formatting that colors the word, giving both a visual and a written signal.

=IF(B2>=$B$1, "On Track", "Behind")

Multi-Level Status With IFS

Real KPIs often have more than two states: good, warning, critical. The IFS function checks conditions in order and returns the first match, which reads cleaner than nested IFs.

To grade performance into three bands:

IFS tests top to bottom, so put the strictest condition first. Pair each band with a color rule and your cards communicate health at a single glance.

=IFS(B2>=$B$1, "Excellent", B2>=$B$1*0.8, "Watch", TRUE, "Critical")

Color Scales for At-a-Glance Trends

Beyond single rules, color scales shade a range of numbers along a gradient so the highest and lowest values stand out without any formula. They are ideal for a column of regional totals or daily figures.

Select the range, open Conditional Formatting, and pick a color scale such as green to red.

  • The largest values glow green, the smallest red, and the middle blends between.
  • The scale recalculates automatically as data changes.

Color scales pair beautifully with KPI cards: the cards give the headline, the scaled column shows where each value sits in the spread.

Assembling the KPI Row

Lay your cards out as a clean row at the top of the dashboard. Each card is a small block: a label cell, a value formula, and a comparison or status beneath it.

  • Card 1: Total Revenue, =SUM(Sales!C2:C500), with a target variance.
  • Card 2: Orders, =COUNTA(Sales!A2:A500).
  • Card 3: Avg Order Value, =AVERAGE(Sales!C2:C500), with a growth percent.

Conditional formatting colors the comparison cells. The row gives an instant summary before the reader scrolls into detail.

=COUNTA(Sales!A2:A500)

Quick Check

Test your understanding of building a multi-level status flag.

Recap: KPI Cards and Highlights

You built the headline layer of a dashboard:

  • Aggregation formulas like SUM, COUNTA, and AVERAGE produced the big KPI numbers.
  • Variance and growth formulas added comparison context against a target and a prior period.
  • IF and IFS turned numbers into status words like On Track, Watch, and Critical.
  • Conditional formatting with formula rules colored cells automatically to flag what matters.

Combined with the summary tables, formula pivots, and interactive dropdowns from earlier lessons, you can now build a complete, live, formula-driven dashboard.

Frequently asked questions

Is the “KPI Cards and Conditional Highlights” lesson free?

Yes — the full text of “KPI Cards and Conditional Highlights” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “KPI Cards and Conditional Highlights”?

Create headline metrics and rules that flag important values. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “KPI Cards and Conditional Highlights” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Summary Tables With Dynamic Arrays
  2. Pivot-Style Reports With Formulas
  3. Interactive Dropdowns and Linked Metrics
  4. KPI Cards and Conditional Highlights
← Back to Excel Formulas Academy