theYaniac
Board Regular
- Joined
- Jan 7, 2018
- Messages
- 64
- Office Version
- 365
- Platform
- Windows
I am looking to write a formula to give me the average of a range of cells. The column that is being averaged receives a new row of data each day. However, the formula in the column is displays as a zero if it has no current data. I have tried to write an IF formula to leave the cells blank that are a later date than today but can't get the zero to not display. Column J is the column used in the Average formula. The formulas are as follows:
Cell C5 "average expectancy" : =AVERAGE($J$9:$J$261) - All rows in J that are a zero value, later than todays date are diluting the answer. I would like to average only the cells from current date and earlier.
Column J: IF(E9="","",E9/D9) returns the daily risk to reward.
The cells in column E are being totaled by date in a table (E9 =SUMIF(tblTradeLog[Date Exited],C9,tblTradeLog[P&L ])
Cell C5 "average expectancy" : =AVERAGE($J$9:$J$261) - All rows in J that are a zero value, later than todays date are diluting the answer. I would like to average only the cells from current date and earlier.
Column J: IF(E9="","",E9/D9) returns the daily risk to reward.
The cells in column E are being totaled by date in a table (E9 =SUMIF(tblTradeLog[Date Exited],C9,tblTradeLog[P&L ])