S
Sprint54
How could this formula be simplified?
=IF($D$2=1,K13,IF($D$2>=2,SUM(K13:L13),IF($D$2>=3,SUM(K13:M13),IF($D$2>=4,SUM(K13:N13),IF($D$2>=5,SUM(K13:O13),IF($D$2>=6,SUM(K1313),0))))))
It's purpose is to total monthly numbers for a YTD total based on the
current month. In cell D2 is the current month number (1 for Jan, 2 for Feb,
etc..) The monthly actuals are located in cells K13 through V13. The
formula is entered in cell I13. The idea is that each new month the monthly
indicator in cell D2 is updated to reflect the current month. I then want
the new YTD number to be summed in cell I13. Thanks
=IF($D$2=1,K13,IF($D$2>=2,SUM(K13:L13),IF($D$2>=3,SUM(K13:M13),IF($D$2>=4,SUM(K13:N13),IF($D$2>=5,SUM(K13:O13),IF($D$2>=6,SUM(K1313),0))))))
It's purpose is to total monthly numbers for a YTD total based on the
current month. In cell D2 is the current month number (1 for Jan, 2 for Feb,
etc..) The monthly actuals are located in cells K13 through V13. The
formula is entered in cell I13. The idea is that each new month the monthly
indicator in cell D2 is updated to reflect the current month. I then want
the new YTD number to be summed in cell I13. Thanks