summing the return on a filtered Xl column

Posted on 2014-11-13
Last Modified: 2014-11-29
I am using Xl 10.   I have a worksheet with several thousand rows.
if I filter a column, rows only appear meeting the criteria.
however, when I try to sum a column which is filtered, I can not get an answer. the formula stops blank.
I notice the rows are a weird progression of numbers as many are skipped ( I would expect this)  but how do I get totals for the columns
Question by:intelogent
  • 3
  • 2
  • 2
  • +1
LVL 33

Accepted Solution

Norie earned 125 total points
ID: 40441601
You could try SUBTOTAL,


or you could use the filter criteria in SUMIF/SUMIFS or SUMPRODUCT.

Author Comment

ID: 40441796
can u translate what this is doing....   =SUBTOTAL(9,B:B)
also where would i place this formula
LVL 26

Assisted Solution

ProfessorJimJam earned 125 total points
ID: 40442112
if you have excel 2010 then nothing beats off the cool function of AGGREGATE

assuming your data starts from column A then put =AGGREGATE(9,5,A:A)  and then drag to the left
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40442394
If using a SUM, it will include the hidden rows and normally SUM will ignore non-numerical values.

Are you putting the SUM in the same column that is being summed and summing the whole column? if so this will create a Circular Reference and default answer for CR formulas is zero.

Using the SUBTOTAL function as suggested above will only sum the visible rows, but if you use whole column (B:B in above example) and put the formula in the same column, it will go circular again.

Try using SUBTOTAL as suggested but put in a different column.

Rob H
LVL 33

Expert Comment

ID: 40442406
In the formula I posted the 9 tells Excel to sum, there are various other options, eg count (1), average(2) etc, you'll get a full list via Intellisense when you enter the formula, or you can find it in the Help files.

B:B is simply the range to sum which you would of course change to suit your needs.

Author Comment

ID: 40442986
really i find the powers of XL a never ending tool that i need to constantly get more of.

your answer works... and explains what another has done...

=SUBTOTAL(9,D2:D3355)     This expression was placed in the column of row 3356.

what i find fascinating and i would appreciate a comment on , is how this appears in all filtered results.  
for instance if i am filtering on column B   yet the row of this formula has no value in column B, the formulas' result is shown are still shown.

what is intellisense
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40443221
When the filter was applied, only data down to row 3355 was selected, leaving 3356 out of the filter's range.

Author Comment

ID: 40471522

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question