Imran Azam
Board Regular
- Joined
- Mar 15, 2011
- Messages
- 103
Hi Guys
I am trying to fix a formula that i have no idea what it is doing.
the formula is
IF(DATEVALUE(F1)-TRIM(D2)>=0,J11040,IF(DATEVALUE(F1)-TRIM(C2)>0,DATEDIF(C2,F1+30,"m")*E2,0))
below is the data
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]total[/TD]
[TD]month number[/TD]
[TD]start[/TD]
[TD]end[/TD]
[TD]per month[/TD]
[TD]30/04/2016[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]54.95[/TD]
[TD]1[/TD]
[TD]01/04/2016[/TD]
[TD]30/04/2016[/TD]
[TD]54.95[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula is placed in F1 and its suppose to return some number .
Can any one help explaining what this formula is doing and why is this not working?
Thank you
I am trying to fix a formula that i have no idea what it is doing.
the formula is
IF(DATEVALUE(F1)-TRIM(D2)>=0,J11040,IF(DATEVALUE(F1)-TRIM(C2)>0,DATEDIF(C2,F1+30,"m")*E2,0))
below is the data
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]total[/TD]
[TD]month number[/TD]
[TD]start[/TD]
[TD]end[/TD]
[TD]per month[/TD]
[TD]30/04/2016[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]54.95[/TD]
[TD]1[/TD]
[TD]01/04/2016[/TD]
[TD]30/04/2016[/TD]
[TD]54.95[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula is placed in F1 and its suppose to return some number .
Can any one help explaining what this formula is doing and why is this not working?
Thank you