Forum Discussion
Ricard_1967
Mar 26, 2020Copper Contributor
Fórmula Excel
I have a formula that is not well programmed and the structure does not support me.
I need excel to add according to a condition
if there is a "slight reason" add 2 years to the cell of a date
if there is a "serious reason" add 3 years to the cell of a date
Could you help me, please ?
Thanks
Perhaps you shall use semicolons instead of commas. Please open the file I attached to previous post, that will be correct formula for your locale, Excel transforms it automatically.
7 Replies
Sort By
- SaviaIron Contributor
Ricard_1967 Try this: =EDATE(date cell, IF(A1="Slight reason", 24, 36))
- Ricard_1967Copper Contributor
- SergeiBaklanDiamond Contributor
Copy/pasting Savia formula you kept curve quotes, thus an error.
Just change on correct syntax
=EDATE(E3, IF(C3="Leve",24, 36))