Share via

How to Return a sum on a range of Cells in Excel based on their fill color status.

Daniel Cupka 20 Reputation points
2026-05-30T17:43:54.53+00:00

How to Return a sum on a range of Cells in Excel based on their fill color status.

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments

Answer accepted by question author

EmilyS726 236.5K Reputation points Independent Advisor
2026-05-30T18:20:34.73+00:00

Hello, Excel does not have a normal built-in formula like SUMIF that can sum cells based on fill color.

However, you can use a somewhat workaround, which requires manual filter done by you first.

Select your data range.

Go to Data > Filter.

Click the filter arrow on the column.

Choose Filter by Color.

Select the fill color you want.

Use this formula below the column:

=SUBTOTAL(109,A2:A100)

109 means SUM visible cells only. Hidden or filtered-out cells are ignored.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.