Your Excel Total Includes the Rows You Filtered Out
SUM does not know the filter exists. You filter a list to one region, read the total at the bottom, and quote a figure that includes every row you just hid. One function fixes it: =SUBTOTAL(109, D2:D21) The 109 matters more than most people realise, and the rest of this explains why. Six rows are on screen. SUM is still adding all twenty, and nothing about the total says so. Why nobody catches it Because Excel tells you the right answer somewhere else. Select the filtered column and look at the status bar along the bottom. The Sum it shows there counts visible cells only . So the status bar says one number, the cell holding =SUM() says another, and the two disagree by however much you filtered out. Almost nobody has both in view at once. You read the cell, because the cell is the one that goes in the report. ⚠️ Filtering hides rows. It does not remove them, and no ordinary formula treats a hidden row differently from a visible one. SUM , AVERAGE , COUNT , MAX and...