=IF(G4="Yes",EDATE(E4,3),"")
24 03 30.xlsm | |||||||
---|---|---|---|---|---|---|---|
E | F | G | H | I | |||
1 | |||||||
2 | |||||||
3 | |||||||
4 | 15/02/2024 | Yes | 15/05/2024 | 15/05/2024 | |||
5 | 15/02/2024 | No | 15/02/2024 | 15/02/2024 | |||
Firelyy |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H4:H5 | H4 | =EDATE(E4,3*(G4="Yes")) |
I4:I5 | I4 | =EDATE(E4,IF(G4="Yes",3,0)) |
Thats exactly what I need but how do I then say if it says no to leave it blank? or say not neededWelcome to the MrExcel board!
Could this be what you mean?
Col H does not use IF so I have included col I even though that formula is a bit longer.
24 03 30.xlsm
E F G H I 1 2 3 4 15/02/2024 Yes 15/05/2024 15/05/2024 5 15/02/2024 No 15/02/2024 15/02/2024 Firelyy
Cell Formulas Range Formula H4:H5 H4 =EDATE(E4,3*(G4="Yes")) I4:I5 I4 =EDATE(E4,IF(G4="Yes",3,0))