SUM Points from Beginning of year to Today

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
Hello,

I have a table that looks like this (It goes all the way to December);
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Employee #[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[TD]Jun[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]4[/TD]
[TD]-5[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]-5[/TD]
[TD]-5[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]-5[/TD]
[TD]-5[/TD]
[TD]6[/TD]
[TD]4[/TD]
[TD]-5[/TD]
[TD]-5[/TD]
[TD]0[/TD]
[/TR]
</TBODY>[/TABLE]


If the current month is Apr (based off of TODAY() or some other cell) then I need to total Jan through Apr like the above table.

I also have another table with the month, start date, and EOMONTH if that is required.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Month[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]1-Jan-18[/TD]
[TD]31-Jan-18[/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]1-Feb-18[/TD]
[TD]28-Feb-18[/TD]
[/TR]
</TBODY>[/TABLE]
Etc....

Can someone help me write the Total formula?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If today is 2nd December 2018 what will your table look like?

Dec Jan Feb Apr etc.. Total

In which case year must be taken into account not just month.
 
Last edited:
Upvote 0
Try this
Put =MONTH(TODAY()) in another cell, say Z1, and then use this, copied down
=SUM(B2:INDEX(B2:M2,Z1))
 
Last edited:
Upvote 0
In which case year must be taken into account not just month.

Thank you for the response. The excel spreadsheet will only be used for 1 calendar year. At which time I will create a copy and start fresh in 2019. Thus the months only go up to December.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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