Try this SMART formula to calculate YTD in Excel (works for Financial Years too!)