Calculate YTD automatically

GarryFreeman

New Member
Joined
Apr 17, 2020
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hoping someone can help me

I am trying to create a file that will always show the YTD based on the last data entered for this year. So as the weeks go by and data is populated the sum adds the previous week to each year based on the latest week populated this year.

Hope this makes sense? Thanks in advance

Garry

Book1
ABCDEFGHIJKLM
104/01/202111/01/202118/01/202125/01/202126/01/202127/01/202128/01/2021YTD2021 V 20202021 V 20192021 V 2018
2WK1WK2WK3WK4WK5WK6WK7
32018£ 42,529£ 42,536£ 42,543£ 42,550£ 42,550£ 42,550£ -£ 170,158
42019£ 43,829£ 43,836£ 43,843£ 43,850£ 43,850£ 43,850£ -£ 175,358
52020£ 44,200£ 44,207£ 44,214£ 44,221£ 44,221£ 44,221£ -£ 176,842
62021£ 45,250£ 45,257£ 45,264£ 45,264£ -£ -£ -£ 181,035£ 4,193£ 5,677£ 10,877
Sheet1
Cell Formulas
RangeFormula
J3:J6J3=SUM(B3:E3)
K6K6=J6-J5
L6L6=J6-J4
M6M6=J6-J3
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, here is one option you can try.

Book4
ABCDEFGHIJ
144200442074421444221442224422344224YTD
2WK1WK2WK3WK4WK5WK6WK7
320184252942536425434255042550425500170158
420194382943836438434385043850438500175358
520204420044207442144422144221442210176842
6202145250452574526445264000181035
Sheet1
Cell Formulas
RangeFormula
J3:J6J3=SUM(B3:INDEX(B3:H3,COUNTIFS($B$6:$H$6,">0")))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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