Average ifs for filtered data (visible data)

Mikes_KM

New Member
Joined
Jun 16, 2019
Messages
17
Hi Everyone,

This is my first post here!

I am trying to play around with data on a trading strategy I have been working on.

I have attached my problem into a new spreadsheet. The real original spreadsheet will be too large to attach here.

What I need:

I want to be able to filter data e.g. the currency pair or data column so that the Avg.Win Cell reflects the change.

I am currently using an average ifs formula, but this does not change the Avg.Win cell when I filter data (it remains at 39.5)
Note: Ideally, I do not want to manually filter the win/loss(p1) column as part of my solution. In the original spreadsheet, this column is hidden.



Thanks
Mikes_KM
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Sorry I have realised that I cant add an attachment

However, so far the formulas are as follows:

Avg.Win - =IF(D4="","",AVERAGEIFS(Table1[Total PnL],Table1[Win/Loss (P1)],"win"))

I somehow want to get the average win from Table1[Total PnL] but only if it is a "win" as shown in Table1[Win/Loss (P1)]

I hope this makes sense. The types of things I will be filtering include 'Date' and 'currency pair'. I do not want to manually filter the Table1[Win/Loss (P1)] column as part of this solution.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top