# Sum By Month to Date or Year to Date- Excel & Google Sheets

This tutorial will demonstrate how to use the SUMIFS function to sum data month-to-date or year-to-date in Excel and Google Sheets. ## Sum by Month to Date

The SUMIFS Function sums data for rows that meet certain criteria. Its syntax is: This example sums Table Reservations month-to-date, using the Functions: SUMIFS, DATE, YEAR, MONTH, and TODAY. Now let’s step through the formula.

### TODAY

The TODAY Function returns the current date. The value is recalculated each time the file is viewed. This is the upper end of our date range for the formula.

### DATE

Then calculate the lower end of the date range: the first day of the current month. We use the DATE Function with YEAR and MONTH to produce this date value. Use the year and month of today’s date and set day to 1. ### SUMIFS

Use the SUMIFS Function to sum Table Reservations when the date is greater than or equal to the first day of the month and less than or equal to the current day. Combining these steps gives us the formula for the month to date sum: ## Sum by Year to Date

The same logic can be used to sum the number of Table Reservations for the current year up until today by making the start date the first day of the year. Both month and day are set to 1. ## Locking Cell References

To make our formulas easier to read, we’ve shown them without locked cell references:

But these formulas will not work properly when copy and pasted elsewhere with your Excel file. Instead, you should use locked cell references like this:  