Year-Over-Year Growth in Excel: Formula, Table and Pivot
By ExcelReady TeamUpdated 6 min read
The short answer
Year-over-year (YoY) growth in Excel is this year's value minus last year's, divided by last year's: =(C2-B2)/B2, formatted as a percentage. When the data is one long list of dates and amounts, total each year with SUMIFS first: =SUMIFS(C:C,A:A,2025)/SUMIFS(C:C,A:A,2024)-1. Compare the same months in both years, and wrap the formula in IFERROR for zero bases.
Key takeaways
- YoY growth is (this year − last year) / last year; the shortcut this year / last year − 1 gives the same result.
- With a long list of transactions, total each year with SUMIFS before you divide.
- Compare like with like: nine months of this year against the same nine months of last year, never the full year.
- IFERROR catches #DIV/0! when last year is zero; a negative base needs ABS or a note.
- In a pivot table, Show Values As > % Difference From with the base item (previous) gives YoY with no formulas.
On this page+
Year-over-year growth in Excel compares a number with the same number one year earlier: (this year − last year) / last year, shown as a percentage. The formula itself is short. The hard parts are getting yearly totals out of a long list, comparing the right periods and handling zero or negative years. This guide covers all of that for analysts, finance staff and job seekers who report growth in sales, costs or customers.
The YoY growth formula#
YoY growth is a percent change where the old value is last year and the new value is this year. With last year in B2 and this year in C2:
=(C2-B2)/B2Format the result as a percentage (Windows: Ctrl+Shift+%; Mac: Control+Shift+%). If sales grew from 533 to 596, the result is 11.82%. The shortcut =C2/B2-1 gives exactly the same answer.
This is the basic percent change formula, and the guide to the percent change formula explains why you divide by the old value and how to read decreases. The rest of this article goes further: real data rarely sits in two neat cells.
YoY growth when the years sit side by side#
When each year has its own column, put the formula in a third column and fill it down. Here are quarterly sales:
| Quarter | 2024 | 2025 | YoY growth |
|---|---|---|---|
| Q1 | 120 | 138 | 15.00% |
| Q2 | 135 | 149 | 10.37% |
| Q3 | 128 | 141 | 10.16% |
| Q4 | 150 | 168 | 12.00% |
| Total | 533 | 596 | 11.82% |
The formula in D2 is =(C2-B2)/B2, filled down to D6. Notice that the total's growth, 11.82%, is not the average of the four quarters. Always calculate the total row from the totals, not by averaging the percentages above it.
YoY growth from a long table with SUMIFS#
Most exports are long: one row per sale, order or quarter, with a year or a date in one column. Total each year with SUMIFS, then divide. With years in A2:A9, quarters in B2:B9 and sales in C2:C9:
=SUMIFS(C2:C9,A2:A9,2025)/SUMIFS(C2:C9,A2:A9,2024)-1The first SUMIFS adds every 2025 row (596), the second every 2024 row (533), and the result is again 11.82%. To make it reusable, put the year in a cell, such as F1, and point at it: =SUMIFS(C:C,A:A,F1)/SUMIFS(C:C,A:A,F1-1)-1. Change F1 to 2026 next year and the formula follows.
If you only have dates, add a helper column with =YEAR(A2), or use date limits inside SUMIFS:
=SUMIFS(C:C,A:A,">="&DATE(2025,1,1),A:A,"<"&DATE(2026,1,1))The SUMIFS function guide explains how the criteria pairs work, and you can practise COUNTIFS and SUMIFS in a live sheet.
Compare like with like: year-to-date growth#
Compare the same period in both years, or the growth figure is meaningless. Say it is October and 2025 only has Q1 to Q3 so far: 428 in sales. Divide that by the full 2024 total of 533 and you get -19.70%, a fake fall. The fair comparison is Q1 to Q3 of both years:
=SUMIFS(C:C,A:A,2025,B:B,"<=3")/SUMIFS(C:C,A:A,2024,B:B,"<=3")-1Now 2024's first three quarters total 383, and the result is 11.75%. The second condition, B:B,"<=3", keeps only quarters 1 to 3. With monthly data, use the month number in the same way, such as "<=9" for January to September.
The same thinking applies to the calendar. A month with an extra weekend or a holiday that moved can make one month's YoY swing, so say what you compared.
How to handle zero and negative years#
Growth from zero has no percentage, and Excel shows #DIV/0!. Wrap the formula in IFERROR to show a clean label instead:
=IFERROR((C2-B2)/B2,"n/a")IFERROR returns the formula's result when it works and "n/a" when it errors. Report the change in units for those rows, such as "+50 new customers". The IFERROR function guide shows other uses.
Negative bases are trickier. If last year's profit was -20 (a loss) and this year's is 10, =(C2-B2)/B2 gives -150%, which looks like a fall even though profit improved. A common fix is to divide by the absolute value, =(C2-B2)/ABS(B2), which gives +150%. Many analysts simply write "n/m" (not meaningful) instead. Either way, say which method you used.
YoY growth in a pivot table#
A pivot table can show YoY growth without a single formula. Starting from a long table with dates and amounts:
- Insert a pivot table and put the date field in Columns and the amount in Values.
- Right-click a date and choose Group, then select Years (and Months if you want both).
- Right-click a value and choose Show Values As > % Difference From.
- Set Base field to Years and Base item to (previous), then click OK.
Each year now shows its growth over the year before. The first year is blank because it has nothing to compare with. The guides to grouping dates in a pivot table and Show Values As cover these steps in detail.
Growth rates, margins and multi-year trends#
YoY growth answers one question: how did this year compare with last year? Related measures answer others:
- Growth across several years. Averaging YoY rates overstates growth. Use the CAGR formula for one yearly rate across the whole period.
- Ratios like margin. If margin went from 20% to 25%, that is 5 percentage points, or 25% growth in the margin itself. Say which you mean. The profit margin formula shows how margin is built.
- Share of a total. "Q4 was 28% of the year" is a percentage of a total, not growth. See the percentage formula guide for the difference.
Practise it#
YoY growth combines two skills that job tests check all the time: percent change and conditional totals. Practise percentages and percent change in a live spreadsheet, then practise SUMIFS with two conditions to build year totals from a long list. Each answer is checked as you type. Then try the exercise on this page to calculate the YoY growth for the example sales.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
This sales list has one row per quarter. In F2, work out the year-over-year growth from 2024 to 2025: =SUMIFS(C2:C9,A2:A9,2025)/SUMIFS(C2:C9,A2:A9,2024)-1.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Sales | ||||||
| 2 | YoY growth | ||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 | |||||||
| 11 | |||||||
| 12 |
Tip: The first SUMIFS totals 2025 (596), the second totals 2024 (533). Dividing and subtracting 1 gives about 0.1182, or 11.82%.
Practise this in a lesson
Frequently asked questions
What is the formula for year over year growth in Excel?
Use =(This year-Last year)/Last year, for example =(C2-B2)/B2, and format the cell as a percentage. =C2/B2-1 gives the same answer.
How do I calculate YoY growth from a list of dates?
Add a Year column with =YEAR(A2), or use date ranges in SUMIFS, to total each year. Then divide this year's total by last year's total and subtract 1.
How do I calculate YoY growth when last year is zero?
Growth from zero can't be expressed as a percentage, and Excel shows #DIV/0!. Wrap the formula in IFERROR, such as =IFERROR((C2-B2)/B2,"n/a"), and report the change in units instead.
How do I show year over year growth in a pivot table?
Group the dates by Years, put the amount in Values, then open Value Field Settings > Show Values As > % Difference From. Choose the year field as the base field and (previous) as the base item.
What is the difference between YoY growth and CAGR?
YoY growth compares one year with the year before. CAGR gives one average yearly rate across several years, using =(End/Start)^(1/Years)-1.