+ Reply to Thread
Results 1 to 3 of 3

Sum of filtered cells only

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Italy
    Posts
    11

    Sum of filtered cells only

    First post here so hello to everyone.

    I'm working on a project which manages a window cleaning round.

    I'm quite pleased with it so far - it tells me when jobs are due, if they are late, how much customers owe and other stuff.

    To create a job list I use the filters, narrowing the list of work down to the areas I want and the work due.

    Here's my question:

    I know that if I highlight a column of cells (eg. price per clean) that as I perform various filters the taskbar tells me the total of the cells (total value of job list); But is there a way of doing the same thing by means of a formula without the need to highlight the cells beforehand?

    Thank you in advance.

    Mark

    Hope that makes sense!

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256
    Hi Mark,

    Yes, you can do this using the SUBTOTAL worksheet function. The formula would be something like:
    =SUBTOTAL(9,A2:A100)

    where A2:A100 is the entire range you want to sum.

    The key is that SUBTOTAL ignores rows hidden by filtering. The 9 argument means that it will SUM the visible cells. The Excel helpfile has some good information on this function.

    HTH
    Colin

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    Italy
    Posts
    11
    Fantastic! and really quick response - thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count including Blank Cells
    By bhofsetz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-17-2015, 02:11 PM
  2. Adding adjacent cells when value of cells is the same
    By mike d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2008, 05:45 AM
  3. Macro to Lock cells in protected sheet depending on criteria
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-30-2008, 12:00 PM
  4. Error when no cells are filtered for selection
    By josnah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-06-2008, 01:24 PM
  5. Counting occurence of multiple cells containing data
    By BrakZak in forum Excel General
    Replies: 8
    Last Post: 11-08-2007, 09:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1