ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. Year-to-Date Totals in Excel

Year-to-Date Totals in Excel

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

For a year-to-date sum in Excel, use SUMIFS with two date conditions: on or after 1 January of the current year, and on or before today. The formula is =SUMIFS(C2:C9,A2:A9,">="&DATE(YEAR(F1),1,1),A2:A9,"<="&F1), where A is the date column, C is the amount and F1 holds the as-of date or =TODAY().

Key takeaways

  • Year to date means from 1 January of this year up to and including today (or another as-of date).
  • SUMIFS checks the date column twice: ">="&DATE(YEAR(F1),1,1) and "<="&F1.
  • Keep the as-of date in its own cell so you can rerun any past period.
  • For last year's figure to the same day, use DATE(YEAR(F1)-1,1,1) and EDATE(F1,-12).
  • A fiscal year that starts in April needs a start date that moves back a year in January to March.
On this page+
  1. The sample data
  2. The year to date sum formula
  3. How the formula works
  4. Use an as-of date cell instead of TODAY
  5. Compare year to date with last year
  6. Year to date for one region or product
  7. Fiscal year to date
  8. A running year-to-date total by month
  9. Practise it

A year-to-date (YTD) sum in Excel adds every amount from 1 January of the current year up to today. SUMIFS does it in one formula by checking the date column twice: once for "on or after 1 January" and once for "on or before today". This guide is for anyone building a sales, expense or KPI report, and it also covers last year's comparison, fiscal years and a running YTD by month.

The sample data#

The examples use this sales log in A1:C9. It covers two years, which is normal for a real file and is exactly why a plain SUM won't do:

ABC
1DateRegionAmount
210-Feb-2025North1,800
322-Apr-2025South2,100
45-Sep-2025North900
58-Jan-2026North1,200
614-Feb-2026South800
730-Mar-2026North1,500
82-May-2026South950
918-Jun-2026North700

The as-of date, 31-May-2026, is in F1. The YTD total should include the four 2026 rows up to May and leave out June and everything from 2025.

The year to date sum formula#

The year-to-date formula is SUMIFS with the amount column first, then two conditions on the date column. In F2, type:

Excel formula
=SUMIFS(C2:C9,A2:A9,">="&DATE(YEAR(F1),1,1),A2:A9,"<="&F1)

The result is 4,450 (1,200 + 800 + 1,500 + 950). The 18-Jun-2026 sale is after the as-of date, and the 2025 sales are before the start date, so none of them count.

For a report that always shows "up to today", put =TODAY() in F1 or replace F1 in the formula with TODAY(). The SUMIFS function guide explains each argument.

How the formula works#

Each part of the formula does one job:

PartWhat it doesValue here
C2:C9The amounts to add
YEAR(F1)The year of the as-of date2026
DATE(YEAR(F1),1,1)1 January of that year1-Jan-2026
">="&DATE(...)On or after 1 January">=46023"
"<="&F1On or before the as-of date"<=46173"

The & joins the operator in quotes to the date. Excel stores dates as serial numbers (days since 1900), so the criteria becomes text like ">=46023". Writing ">=DATE(2026,1,1)" all inside the quotes would not work, because Excel would read it as plain text.

Use "<=" for the end date, not "<", so sales on the as-of date itself are included. If your dates also hold times, like 31-May-2026 14:30, use "<"&F1+1 instead to include the whole last day.

Use an as-of date cell instead of TODAY#

Keeping the end date in a cell makes the report easy to check and rerun. With TODAY(), the number changes every day, so you can't reproduce last Friday's figure. With an as-of cell, you type 31-May-2026 and get the YTD at the end of May, any time.

The same idea powers the month-to-date total: only the start date changes, from 1 January to the 1st of the month. For any other start and end, see summing between two dates.

Compare year to date with last year#

A YTD figure means more next to last year's YTD to the same day. Shift both dates back one year:

Excel formula
=SUMIFS(C2:C9,A2:A9,">="&DATE(YEAR(F1)-1,1,1),A2:A9,"<="&EDATE(F1,-12))

The result is 3,900 (1,800 + 2,100), all 2025 sales up to 31-May-2025. EDATE(F1,-12) returns the same day 12 months earlier, and it handles leap years: from 29-Feb-2028 it goes back to 28-Feb-2027.

If this formula is in F3, growth is:

Excel formula
=F2/F3-1

The result is about 0.141, or 14.1% when formatted as a percentage. Don't compare this year's YTD with all of last year: five months against twelve always looks like a fall. For whole-year totals, see how to sum by year.

Year to date for one region or product#

Add another range and criteria pair to SUMIFS for each extra condition. Year-to-date sales for the North region:

Excel formula
=SUMIFS(C2:C9,A2:A9,">="&DATE(YEAR(F1),1,1),A2:A9,"<="&F1,B2:B9,"North")

The result is 2,700 (1,200 + 1,500). Point the region at a cell, such as B2:B9,H2, and fill the formula down a list of regions to get YTD by region. The COUNTIFS and SUMIFS lesson practises these multi-condition totals with locked ranges.

Fiscal year to date#

Many companies run a fiscal (financial) year that doesn't start in January, such as 1 April to 31 March. The only change is the start date. For a year starting on 1 April:

Excel formula
=DATE(YEAR(F1)-(MONTH(F1)<4),4,1)

MONTH(F1)<4 is TRUE (1) in January to March, so the start moves back to April of the previous year. For 31-May-2026 it is FALSE (0), and the start is 1-Apr-2026. Use this date in place of DATE(YEAR(F1),1,1) in the YTD formula. Here the fiscal YTD is 950, the only sale between 1 April and 31 May 2026. For a different start month, change both 4s.

A running year-to-date total by month#

A running total shows how the year has built up, month by month. First total each month, for example with SUMIFS between the 1st and the end of each month; the guide on summing by month shows how. Then add a running column:

ABC
1MonthSalesYTD
2Jan 20261,2001,200
3Feb 20268002,000
4Mar 20261,5003,500
5Apr 202603,500
6May 20269504,450

In C2, type =SUM($B$2:B2) and fill it down. The $ locks the start at B2 while the end moves down one row each time. The last row matches the SUMIFS answer, 4,450, which is a good check.

Practise it#

Try the exercise on this page: it builds the YTD total from an as-of date. Then practise dates in criteria in a live spreadsheet, where you total rows between two dates and build a monthly summary, and it checks each formula instantly. The COUNTIFS and SUMIFS lesson adds the extra conditions, like region or product.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

What are total sales for 2026 up to the as-of date in F1? Click F2 and use SUMIFS on the amounts in C2:C9, with the dates in A2:A9 on or after 1 January of F1's year and on or before F1.

fx
ABCDEFG
1
Date
Region
Amount
As of
46173
2
45698
North
1800
YTD sales
3
45769
South
2100
4
45905
North
900
5
46030
North
1200
6
46067
South
800
7
46111
North
1500
8
46144
South
950
9
46191
North
700
10
11
12

Tip: Start with the amounts, C2:C9. Then two pairs on the date column: ">="&DATE(YEAR(F1),1,1) and "<="&F1.

Practise this in a lesson

LessonDates in criteria: totals by date range and monthCount and total rows between two dates with COUNTIFS and SUMIFS, build a monthly summary, and drive the date range from input cells.LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.

Frequently asked questions

What is the formula for year to date in Excel?

+

Use =SUMIFS(C:C,A:A,">="&DATE(YEAR(TODAY()),1,1),A:A,"<="&TODAY()), where column A holds dates and column C holds amounts. It adds every amount from 1 January of this year up to today.

How do I compare year to date with last year?

+

Use the same SUMIFS with last year's dates: a start of DATE(YEAR(F1)-1,1,1) and an end of EDATE(F1,-12). Then divide this year's total by last year's and subtract 1 for the growth rate.

How do I calculate year to date for a fiscal year?

+

Work out the fiscal year start first. For a year starting 1 April, use =DATE(YEAR(F1)-(MONTH(F1)<4),4,1) as the start date and F1 as the end date in SUMIFS.

How do I make a running year-to-date total by month?

+

Put the monthly totals in a column and use =SUM($B$2:B2) in the first row, then fill it down. The locked start and moving end add one more month on each row.

Sources

  • SUMIFS function - Microsoft Support
  • DATE function - Microsoft Support
  • EDATE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The sample data
  2. The year to date sum formula
  3. How the formula works
  4. Use an as-of date cell instead of TODAY
  5. Compare year to date with last year
  6. Year to date for one region or product
  7. Fiscal year to date
  8. A running year-to-date total by month
  9. Practise it

Keep reading

Dates· 6 min read

Month-to-Date Totals in Excel

A month-to-date sum adds every amount dated from the first day of the current month up to today. Use SUMIFS with two date conditions: =SUMIFS(C:C,A:A,">="&EOMONTH(TODAY(),-1)+1,A:A,"<="&TODAY()). EOMONTH(TODAY(),-1)+1 is the 1st of this month. Replace TODAY() with a date cell to see the total as of any day.

Conditional math· 6 min read

How to Sum by Year in Excel

To sum by year in Excel, use SUMIFS with two date conditions: on or after 1 January and before 1 January of the next year. With the year in E2, write =SUMIFS(C2:C8,A2:A8,">="&DATE(E2,1,1),A2:A8,"<"&DATE(E2+1,1,1)). A shorter option is =SUMPRODUCT((YEAR(A2:A8)=E2)*C2:C8), and a PivotTable can group dates by year.

Conditional math· 7 min read

Sum by Date Range or Month in Excel With SUMIFS

To sum between two dates, give SUMIFS the same date column twice: once with ">="&start and once with "<"&end. For January 2025, write =SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,2,1)). Keep the operator in quotes and join the date with &. Using "before the 1st of next month" works for every month.

More on dates

  • YEARFRAC in Excel: Part of a Year Between Two Dates
  • Add Days, Months or Years to a Date in Excel
  • How to Add Hours and Minutes to a Time in Excel
  • Calculate Age in Years and Months in Excel
  • Build a Biweekly Pay Schedule in Excel
  • Calculate Age or Years of Service in Excel
All dates articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free