BenElliott
Board Regular
- Joined
- Jul 19, 2012
- Messages
- 144
What is wrong with this formula?
{=SUM(--(FREQUENCY(IF((LocalHistory[Date]<=EOMONTH(NOW(),-48)),MATCH(LocalHistory[Talk Number In],LocalHistory[Talk Number In],0)),ROW(LocalHistory[Talk Number In])-ROW($A$2)+1)>0))}
It refers to an XL table named LocalHistory of which the below is a small extract:
If I change the operator ">=" to "<" the formula works but, with EOMONTH(NOW(),0 calculating as 30 Nov 2018 the formula should be returning a result on this table extract of 6 not the #N/A as I do. Therefore, what is wrong with this formula?[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date
[/TD]
[TD]Talk Number In
[/TD]
[/TR]
[TR]
[TD]26/10/2014
[/TD]
[TD]110
[/TD]
[/TR]
[TR]
[TD]02/11/2014
[/TD]
[TD]99
[/TD]
[/TR]
[TR]
[TD]16/11/2014
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]23/11/2014
[/TD]
[TD]123
[/TD]
[/TR]
[TR]
[TD]30/11/2014
[/TD]
[TD]141
[/TD]
[/TR]
[TR]
[TD]7/12/2014
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]14/12/2014
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]21/12/2014
[/TD]
[TD]67
[/TD]
[/TR]
[TR]
[TD]4/1/2015
[/TD]
[TD]88
[/TD]
[/TR]
[TR]
[TD]11/1/2015
[/TD]
[TD]158
[/TD]
[/TR]
[TR]
[TD]18/1/2015
[/TD]
[TD]98
[/TD]
[/TR]
</tbody>[/TABLE]
{=SUM(--(FREQUENCY(IF((LocalHistory[Date]<=EOMONTH(NOW(),-48)),MATCH(LocalHistory[Talk Number In],LocalHistory[Talk Number In],0)),ROW(LocalHistory[Talk Number In])-ROW($A$2)+1)>0))}
It refers to an XL table named LocalHistory of which the below is a small extract:
If I change the operator ">=" to "<" the formula works but, with EOMONTH(NOW(),0 calculating as 30 Nov 2018 the formula should be returning a result on this table extract of 6 not the #N/A as I do. Therefore, what is wrong with this formula?[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date
[/TD]
[TD]Talk Number In
[/TD]
[/TR]
[TR]
[TD]26/10/2014
[/TD]
[TD]110
[/TD]
[/TR]
[TR]
[TD]02/11/2014
[/TD]
[TD]99
[/TD]
[/TR]
[TR]
[TD]16/11/2014
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]23/11/2014
[/TD]
[TD]123
[/TD]
[/TR]
[TR]
[TD]30/11/2014
[/TD]
[TD]141
[/TD]
[/TR]
[TR]
[TD]7/12/2014
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]14/12/2014
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]21/12/2014
[/TD]
[TD]67
[/TD]
[/TR]
[TR]
[TD]4/1/2015
[/TD]
[TD]88
[/TD]
[/TR]
[TR]
[TD]11/1/2015
[/TD]
[TD]158
[/TD]
[/TR]
[TR]
[TD]18/1/2015
[/TD]
[TD]98
[/TD]
[/TR]
</tbody>[/TABLE]