Results 1 to 3 of 3

Dynamic Filter-Dependant Formulas?

Threaded View

admlsnackbar Dynamic Filter-Dependant... 02-08-2010, 02:34 PM
ncmay Re: Dynamic Filter-Dependant... 02-08-2010, 02:44 PM
admlsnackbar Re: Dynamic Filter-Dependant... 02-08-2010, 03:00 PM
  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    MA, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Dynamic Filter-Dependant Formulas?

    Greetings!

    I am new to these forums, but somewhat experienced with Excel programming.

    I have a Filter set up across a few columns of data. Lets say one of the columns is called "Hours", and another is called "User". There is another cell called "Totals" outside of the Filter.

    What I would like to have is a self-updating Totals cell that will Sum the total number of Hours for whatever the Filter is currently showing.

    Examples:

    If I set the Filter to show only UserA's data, the Totals cell will Sum the Hours for UserA.

    If I set the Filter to show All Users with Hours greater than 2, the Totals cell will Sum all the Hours greater than 2.

    If I set the Filter to show UserB and UserC and Hours less than 5...well you get the idea.

    Can I write a function that loops through the data that meets the Filter's criteria? Do I need to create a macro to update the Totals cell each time the Filter is changed? Is there an easier way that I don't know about?

    Thanks in advance!


    Pseudo-Code:

    Totals = Sum( Filter Hours )
    Last edited by admlsnackbar; 02-08-2010 at 03:02 PM.

Thread Information

Users Browsing this Thread

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

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