Hello friends,
In cell "E11" I need to add values from column "J"
when a specific case occurs in formula "E11", but
the formulas in cells "B5, E8, G8" do not change.
when the year is 2024 in cell E8, then E11=100
when the year is 2025 in cell G8, then E11=200
when the year is 2026 in cell G8, then E11=300
when the year is 2027 in cell E8, then E11=400
Could you please help me with this?
Thank you
In cell "E11" I need to add values from column "J"
when a specific case occurs in formula "E11", but
the formulas in cells "B5, E8, G8" do not change.
when the year is 2024 in cell E8, then E11=100
when the year is 2025 in cell G8, then E11=200
when the year is 2026 in cell G8, then E11=300
when the year is 2027 in cell E8, then E11=400
Could you please help me with this?
Thank you
Cell Formulas | ||
---|---|---|
Range | Formula | |
E5 | E5 | =TODAY() |
E8 | E8 | =DATE(YEAR($E$5)-IF($E$5>=DATE(YEAR($E$5),2,28),0,1),2,28) |
G8 | G8 | =DATE(YEAR($E$5)-IF($E$5>=DATE(YEAR($E$5),1,1),0,1),1,1) |
E11 | E11 | =IF(YEAR(E8)=2024,J5,IF(YEAR(G8)=2025,J6,IF(YEAR(G8)=2026,J7,IF(YEAR(E8)=2027,J8,)))) |