johnturgoose
Technical User
I am trying to utilise the sumproduct function and can't seem to get the correct syntax for the date.
I am using:
=SUMPRODUCT((CENTRE=$A4)*(RDATE>C$1)*(RATE<C$2)*75)
I want to add another criteria that looks at the range WITHDRAWN (date). I want it to check that 1 it is null or if not null then it is less than 6 months prior to C2
So the syntax I have used is
=SUMPRODUCT....*(OR(WITHDRAWN="",DATEDIF(WITHDRAWN,C2,"m")<6))
This returns no errors but whatever i enter as a date in the withdrawn range it won't affect the result of the function.
Any advice greatly appreciated. I'm sure its something fairly obvious
Many thanks
John
I am using:
=SUMPRODUCT((CENTRE=$A4)*(RDATE>C$1)*(RATE<C$2)*75)
I want to add another criteria that looks at the range WITHDRAWN (date). I want it to check that 1 it is null or if not null then it is less than 6 months prior to C2
So the syntax I have used is
=SUMPRODUCT....*(OR(WITHDRAWN="",DATEDIF(WITHDRAWN,C2,"m")<6))
This returns no errors but whatever i enter as a date in the withdrawn range it won't affect the result of the function.
Any advice greatly appreciated. I'm sure its something fairly obvious
Many thanks
John