+ Reply to Thread
Results 1 to 4 of 4

Formula that will be affected by data filtering

  1. #1
    Registered User
    Join Date
    02-19-2008
    Posts
    2

    Formula that will be affected by data filtering

    Hi,
    I'm working with Excel 2007. I've imported data from a DB table to a data sheet, and added a chart, and a simple formula, based on the imported data.
    When I filter the data, the chart is updated and present the filtered data, but the formula does not change its data range when filtering and allways displays the same static result.
    Is there a way to force that formula to update its data input when filtering?
    Thanks.

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi,

    I'm only using Excel 2003 but it may be similar in 2007 - if the simple formula is a sum, I suggest trying a subtotal instead.

    The Help Files for Excel 2003 state:
    For the function_num constants from 1 to 11, the SUBTOTAL function includes the values of rows hidden by the Hide command under the Row submenu of the Format menu). Use these constants when you want to subtotal hidden and nonhidden numbers in a list. For the function_Num constants from 101 to 111, the SUBTOTAL function ignores values of rows hidden by the Hide command under the Row submenu of the Format menu). Use these constants when you want to subtotal only nonhidden numbers in a list.
    The SUBTOTAL function ignores any rows that are not included in the result of a filter, no matter which function_num value you use.
    If your formula is not a sum, can you please let us know what it is?

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Registered User
    Join Date
    02-19-2008
    Posts
    2
    Hi Rob,
    You are right! SUBTOTAL solves that problem.
    Thanks again,
    Assaf

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    Hi Assaf,

    thanks for the feedback - I'm pleased I could help :-)

    Rob

+ Reply to Thread

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