Calculating YTD Sales

Greg123

New Member
Joined
Apr 8, 2019
Messages
4
What is an easy way to calculate YTD sales for last year for the same months that have sales this year? In the example below, I want a formula that will determine that we are 4 months into this year, and only add the first 4 months of last year so that we have a YTD comparison. In this example, the 272 is what I am looking for but I don't want to have to update the formula each month. Any help is appreciated!


Last YearThis Year
January3445
February2136
March7245
April14521
May24
June36
July73
August51
September18
October12
November68
December99
TOTAL653147
Comparative272147

<tbody>
</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi & welcome to MrExcel.
How about


Excel 2013/2016
ABC
1Last YearThis Year
2January3445
3February2136
4March7245
5April14521
6May24
7June36
8July73
9August51
10September18
11October12
12November68
13December99
14TOTAL653147
15
16Comparative272147
Report
Cell Formulas
RangeFormula
B16=SUMIF(C2:C13,">0",B2:B13)
 
Last edited:
Upvote 0
That was a little too obvious. Thanks, I should have figured that one out!



Hi & welcome to MrExcel.
How about

Excel 2013/2016
ABC
1Last YearThis Year
2January3445
3February2136
4March7245
5April14521
6May24
7June36
8July73
9August51
10September18
11October12
12November68
13December99
14TOTAL653147
15
16Comparative272147

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Report

Worksheet Formulas
CellFormula
B16=SUMIF(C2:C13,">0",B2:B13)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
You're welcome & thanks for the feedback.

Unfortunately "The obvious" very rarely is (except with hindsight)
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top