SUM monthly total of each employee from separate weekly table

kirkley08

New Member
Joined
Mar 29, 2023
Messages
20
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
Hi, I'm wondering if there is any easy way using excel formula to sum each employee's correct and error (yellow area) monthly from each separate weekly table.
For now Im using =sum(xx,xx,xx) to total them, just wondering if there is any other way. Thank you!
 

Attachments

  • test.jpg
    test.jpg
    158.3 KB · Views: 14

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.
Hello, please test the following, not a very elegant formula (you will need to adjust ranges):

Excel Formula:
=LET(
month,10,
year,2024,
from,$B$1:$B$33,
to,$E$1:$E$33,
names,$A$1:$A$33,
name,$H3,
data,B$1:B$33,
dates,$D$1:$D$33,
b_f,FILTER(from,dates="to"),
c_f,b_f+SEQUENCE(,ROWS(from)/ROWS(b_f),0,0),
d_f,FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN(",",,TRANSPOSE(c_f)),",","</y><y>")&"</y></x>","//y"),
e_f,SORT(d_f),
b_t,FILTER(to,dates="to"),
c_t,b_t+SEQUENCE(,ROWS(to)/ROWS(b_t),0,0),
d_t,FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN(",",,TRANSPOSE(c_t)),",","</y><y>")&"</y></x>","//y"),
e_t,SORT(d_t),
SUM(FILTER(data,(names=name)*((MONTH(e_f)=month)+(MONTH(e_t)=month))*((YEAR(e_f)=year)+(YEAR(e_t)=year)))))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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