You can highlight the highest value in each Excel row with Conditional Formatting, using a formula that compares every cell to the row's maximum. Select your data range, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter a formula like =A1=MAX($A1:$Z1) (adjust the range to your columns). No add-ins or macros are needed, and it works in Excel for Microsoft 365, Excel 2021, 2019, and 2016 on Windows and Mac.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, 2019, or 2016 (Windows or Mac). Excel for the web supports the same Conditional Formatting rules.
  • A worksheet with numeric data arranged in rows, plus a clear idea of which columns should be compared in each row.

Step-by-Step

  1. Select the cells you want to format. Click the first cell of your data and drag to the last, or press Ctrl+A (Windows) or Command+A (Mac) if the data is isolated. Do not include header rows or text-only columns unless you want them evaluated too.
  2. Open Conditional Formatting. On the Home tab, click Conditional Formatting in the Styles group, then choose New Rule. Menu labels can differ slightly by version, device, or region.
  3. Choose the formula option. In the New Formatting Rule dialog, select Use a formula to determine which cells to format.
  4. Write the formula using the active cell as the reference. If your selection starts at A1 and the row range is A1:Z1, enter =A1=MAX($A1:$Z1). The first reference (A1) is relative so it shifts per cell; the MAX range uses mixed references (column locked, row relative) so each row compares only its own cells. If your data starts at B2 and runs to M2, use =B2=MAX($B2:$M2).
  5. Click Format and choose a fill colour. Pick a bright fill (for example light green or yellow) on the Fill tab, then click OK. Avoid font colour changes that could hide the value.
  6. Preview and apply. The Preview box shows the rule applied to the active cell. Click OK to close the New Formatting Rule dialog, then OK again if a Rules Manager appears.
  7. Verify the result. Scan each row: the highest number should now carry your fill colour. If a row has ties, every tied maximum is highlighted, which is expected behaviour.

Common Mistakes

  • Using absolute references for the whole range. A formula like =A1=MAX($A$1:$Z$1) compares every row to row 1 only. Lock the columns but not the rows: $A1:$Z1.
  • Mismatching the first reference and the selection. The formula must start with the top-left cell of your selection. If you selected B2:M10, the formula must begin with B2, not A1.
  • Including text or blank cells in the MAX range. MAX ignores text and blanks, but a stray number in a notes column can become the false maximum. Restrict the range to the numeric columns.
  • Applying the rule to the wrong range. If you later insert columns inside the formatted range, Excel usually extends the rule, but inserting rows above the range can leave new rows unformatted. Reapply the rule if needed.
  • Expecting the highlight to update a chart or pivot. Conditional formatting changes only cell appearance, not values, charts, or pivot caches.

Tips

  • To highlight only the single highest value across the entire table rather than per row, use =A1=MAX($A$1:$Z$10) with the full range locked.
  • For a top-N approach per row, use Conditional Formatting > Top/Bottom Rules > Top 10 Items and change the number, but note this ranks within the selected range, not strictly per row unless each row is selected separately.
  • Use Conditional Formatting > Manage Rules to edit, reorder, or delete rules. Rules are evaluated top to bottom; a Stop If True setting on an earlier rule can block later ones.
  • Copy the formatted cells with Paste Special > Formats to apply the same rule to another block, then adjust the formula references in Manage Rules.
  • Keep a helper column with =MAX(A2:Z2) if you want to sort or filter by the row maximum; conditional formatting alone cannot be sorted on.

Troubleshooting

  • Nothing is highlighted. Check that the formula begins with the selection's top-left cell and that the range references match your columns. Open Manage Rules and confirm the rule applies to the intended range and that Stop If True is not blocking it.
  • Every cell in a row is highlighted. This usually means the MAX range is a single cell or all values are equal. Widen the range to cover all compared columns.
  • Only one row is highlighted. The MAX range is probably fully absolute ($A$1:$Z$1). Remove the dollar signs before the row numbers.
  • The highlight disappears after editing. If you delete and re-enter cells, the rule should persist; if you paste values with formatting from elsewhere, use Paste Special > Values to keep the rule intact.
  • The rule looks right but colours are wrong. Another rule with higher priority may be overriding it. In Manage Rules, move your rule up or tick Stop If True on it.

Frequently Asked Questions

Can I highlight the highest value in each row without a formula?

Not reliably per row. The built-in Top/Bottom Rules work on the whole selected range, so they highlight the top values overall, not one per row. A formula rule is the correct tool for per-row highlighting.

Does this work in Excel for the web and on Mac?

Yes. Conditional Formatting with formula rules is available in Excel for the web and Excel for Mac. The dialog layout differs slightly, but the formula syntax is the same.

What happens if two cells in a row tie for the highest value?

Both are highlighted, because the rule tests whether each cell equals the row maximum. If you want only the first occurrence highlighted, add a COUNTIF condition, for example =AND(A1=MAX($A1:$Z1),COUNTIF($A1:A1,MAX($A1:$Z1))=1).

Will the highlight update when I change a number?

Yes. Conditional formatting recalculates automatically when cell values change, so the highlight moves to the new maximum.

Can I highlight the highest value in a row that contains blanks?

Yes. MAX ignores blanks and text, so blanks will not become the maximum. Just make sure the range covers only the columns you want compared.

Can I use this on a filtered or sorted table?

Yes, the rule applies to the underlying cells regardless of filter or sort order. Hidden rows still follow the rule, though you will not see their highlight until you unhide them.