Results 1 to 9 of 9

Dynamic criteria for SUMIF or dynamic getpivotdata

Threaded View

  1. #1
    Registered User
    Join Date
    06-15-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    25

    Lightbulb Dynamic criteria for SUMIF or dynamic getpivotdata

    Hi Everyone,

    I need help with a spreasheet issue related to my trading strategy.

    It would be great if I could upload the excel file, but it is too large. So I will carefully explain the problem with several images labelled in 2 word documents.


    Image 1 Shows - The week# and closed pips (for the specified week #) [as shown by 83.6, 25.3, 32.3 etc]

    If we zoom into the formula for closed pips, we see that it contains a complex getpivotdata formula (Image 2)
    The pivot table is hidden. If I unhide the pivot table, we get image 3

    We can zoom into where the data comes from as shown in images 4 and 5.
    Image 4 shows - Trade week (rank)
    Image 5 shows - Total PnL


    My problem:
    I need the "Closed Pips" as shown in image 1 to be dynamic. For example, if I filter out some data in my spreadsheet, the closed pips returned in a week should change. But it does not. At the moment, I would have to manually filter the data in the hidden pivot table.

    What I have done so far:
    I have created a SUMIF formula as shown in image 6. This formula needs to be improved on. Ideally, the criteria "=1" should be dymamic. As it represents the week.

    If we look at image 7 - you can see we get the same -83.6 as we get at the top of closed pips in image 1. However, as the criteria is not dynamic, we fail to get 25.3 below as a representation of the closed pips in week 2. Instead we get 78.3.


    What I'd like help with:
    1. Either fixing this formula, so I can replace the complex getpivotdata formula shown in image 1

    OR

    2. Some how make the complex getpivotdata dynamic so that as I filter things throughout my spreadsheet, the closed pips reflects the change.


    Thank you
    Attached Files Attached Files
    Last edited by Mikes_KM; 07-21-2019 at 12:54 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic sumif based on changing list of inclusion criteria?
    By Oppo28 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2017, 04:28 PM
  2. [SOLVED] SUMIF criteria across dynamic range
    By Journeyman3000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2014, 05:10 PM
  3. Dynamic Criteria for SUMIF, multiple selections
    By alhimyaa in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2013, 01:30 AM
  4. Dynamic sumif ranges based on Hlookup criteria
    By Dial1 in forum Excel General
    Replies: 2
    Last Post: 10-24-2011, 01:21 AM
  5. SUMIF with Dynamic Criteria
    By nofzinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 06:17 PM
  6. SUMIF with dynamic criteria
    By inky in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-08-2008, 08:59 AM
  7. Sumif using dynamic date criteria
    By bkube01 in forum Excel General
    Replies: 3
    Last Post: 08-25-2006, 11:11 AM

Tags for this Thread

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