Imran Azam
Board Regular
- Joined
- Mar 15, 2011
- Messages
- 103
HI guys
i been given a spreadsheet at work and there is a formula that i dont understand
the formula is =IF(DATEVALUE(E$1)-TRIM(A2)>=0,B2,IF(DATEVALUE(E$1)-TRIM(C2)>0,DATEDIF(C2,E$1+30,"m")*D2,0))
the data s below
<tbody>
</tbody>
the formula is in E3 and the output is in bold.
Can anyone explain to me what this formula is doing?
Thank you
Regards
Imran
i been given a spreadsheet at work and there is a formula that i dont understand
the formula is =IF(DATEVALUE(E$1)-TRIM(A2)>=0,B2,IF(DATEVALUE(E$1)-TRIM(C2)>0,DATEDIF(C2,E$1+30,"m")*D2,0))
the data s below
1 | A | B | C | D | E |
2 | end date | price | start date | per month | 30/06/2016 |
3 | 31/12/2015 | 4498.16 | 01/102015 | 1499.39 | 4498 |
<tbody>
</tbody>
the formula is in E3 and the output is in bold.
Can anyone explain to me what this formula is doing?
Thank you
Regards
Imran