+ Reply to Thread
Results 1 to 3 of 3

filtering data from multi sheets then performing functions on results

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    filtering data from multi sheets then performing functions on results

    I use tabbed worksheets to create trade histories of multiple trading systems. These histories are then manipulated so that only certain trades are actually executed. For the trades which are not executed, the original data remains in the table, but certain columns to the right of the table will be blank.

    A summary sheet includes a table showing all trades from all the tabbed worksheets. I make additional cacluations based on the data in the summary table.

    The summary table includes those rows which do not contain executed trades.

    I would like to create a macro (or use an array function?) to eliminate the rows where there is no data. HOWEVER I need to make additional (complex) calculations once this new table is created. If there is a way to accomplish this with PTS I haven't figured it out.

    Can anyone help? Spreadsheet is attached. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: filtering data from multi sheets then performing functions on results

    i just record a macro to cut/paste table to newsheet, auto filter to include 0 only,delete visible rows then cut paste back to original loction
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: filtering data from multi sheets then performing functions on results

    Thank you Martin.

    I suppose I should have mentioned that all tables (summary, and the individual tabbed sheets) need to be dynamic.

    For example I may want to see what an equity curve looks like if I enter "2" in cell D25 of the summary page, or change cell F32 to 400 rather than 300.

    Because I am constantly changing variables such as these, wouldn't it be cumbersome to have to run a macro each time I change a variable? (The sample sheet represents only a small portion of my dataset.)

    Is the solution to create a dynamic table with ALL calculations (including running totals and complex SUMIFS forumlas) in the dynamic table?

    (If so, can someone please tell me how to insert complex functions in a PT or other filtered table) Thanks.

+ 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