Excelnewman
New Member
This is a financial worksheet calculating how many lost or won trades have been completed within a month period.
I am trying to get cell ```I5``` on sheet ```MONTHLY STATS - SPREADS``` to populate a ```0``` if there have been no ```L```'s to count between the dates of 1 Feb 21 and 28 Feb 21 on sheet ```SPREADS LOG```.
But I only want this ```0``` to populate if there is data present in cell ```H5```. If there is no data in ```H5```I would like ```I5``` to be blank. (note I cannot use a number format to hide these ```0```'s in cell ```I5``` as I am trying to average the complete ```I``` column )
Whilst it is doing this cell ```I5``` must also be able to run the ```COUNTIFS``` & ```SUM``` formulas shown below.
This is the current formula in cell ```I5``` :
```=IF(SUM(COUNTIFS('SPREADS LOG'!P: P,{"L"},'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28)))=0,"",SUM(COUNTIFS('SPREADS LOG'!P: P,{"L"},'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28))))```
If someone could tweak this formula, that would be great.
I am trying to get cell ```I5``` on sheet ```MONTHLY STATS - SPREADS``` to populate a ```0``` if there have been no ```L```'s to count between the dates of 1 Feb 21 and 28 Feb 21 on sheet ```SPREADS LOG```.
But I only want this ```0``` to populate if there is data present in cell ```H5```. If there is no data in ```H5```I would like ```I5``` to be blank. (note I cannot use a number format to hide these ```0```'s in cell ```I5``` as I am trying to average the complete ```I``` column )
Whilst it is doing this cell ```I5``` must also be able to run the ```COUNTIFS``` & ```SUM``` formulas shown below.
This is the current formula in cell ```I5``` :
```=IF(SUM(COUNTIFS('SPREADS LOG'!P: P,{"L"},'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28)))=0,"",SUM(COUNTIFS('SPREADS LOG'!P: P,{"L"},'SPREADS LOG'!R:R,">="&DATE(2021,2,1),'SPREADS LOG'!R:R,"<="&DATE(2021,2,28))))```
If someone could tweak this formula, that would be great.