Average sum of day

BIGGAZ

New Member
Joined
May 16, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a job sheet that enters the totals of a day. I need to average jobs completed each day for tracking. so sum each Tuesday and average against each other Tuesday.

I have used the averageifs function but that is averaging the jobs within that day.

This is the results page, with the formula above

1673385946510.png


This is the data page where the job details are entered

1673386022846.png


I need to sum it if the date is the same and machine is the same. then average that against same machine name but different date same day of the week.

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Cannot manipulate data in picture. You can use power query to group on the date and machine to provide an average. If you will reload your sample data using XL2BB, then I can demonstrate.
 
Upvote 0
Cannot manipulate data in picture. You can use power query to group on the date and machine to provide an average. If you will reload your sample data using XL2BB, then I can demonstrate.
I cannot install a program from an unknown source on my computer.
 
Upvote 0
Ok, then try my suggestion with Power Query

Load your table/range Data-->Get & Transform Data-->From Table/Range
Select Group Data-->Select your Machine Field and Date LoadField
Select your new Field Name and then select the field to sum
Close and Load to your Native Excel.

Or....
Load a sample file to a third party location such as DropBox or Box.Net
 
Upvote 0
Ok, then try my suggestion with Power Query

Load your table/range Data-->Get & Transform Data-->From Table/Range
Select Group Data-->Select your Machine Field and Date Field
Select your new Field Name and then select the field to sum
Close and Load to your Native Excel.
Hi Alan,

Thanks very much for the idea but I think this would require manually selecting the correct data fields each time you want to get an average. Each week more data will get added to an endless list.

I think a modification of the above formula would be the way to go as it will auto update on new data.

Gary
 
Upvote 0
Not true. Will update automatically with new data added to the table. If you haven't worked with PQ, then you may be surprised how easy and efficient it is to work with.
 
Upvote 0
Book11
ABCDEFGHIJKLM
1DateDayMACH N ENAMESTITCHESRU NSCOMPLETEDateMACH N EAvg StitchAvg RunsAvg Complete
210-JanTUESDAYSINGLE HEAD2726221/10/2023SINGLE HEAD60792.52.5
310-JanTUESDAYSINGLE HEAD4184551/11/20238Head5335.5714292.1428571432.142857143
410-JanTUESDAYSINGLE HEAD11208111128355
510-JanTUESDAYSINGLE HEAD1404633
610-JanTUESDAYSINGLE HEAD44411
710-JanTUESDAYSINGLE HEAD401122
810-JanTUESDAYSINGLE HEAD73011
910-JanTUESDAYSINGLE HEAD1128355
1011-JanWednesay8Head272622
1111-JanWednesay8Head418455
1211-JanWednesay8Head1120811
1311-JanWednesay8Head1404633
1411-JanWednesay8Head44411
1511-JanWednesay8Head401122
1611-JanWednesay8Head73011
171128355
Sheet1

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="tblRawData"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Date", "MACH N E"}, {{"Avg Stitch", each List.Average([STITCHES]), type number}, {"Avg Runs", each List.Average([RU NS]), type number}, {"Avg Complete", each List.Average([COMPLETE]), type number}})
in
    #"Grouped Rows"

Any data added to the orginal table will update automatically when the refresh button is selected.
 
Upvote 0
Book11
ABCDEFGHIJKLM
1DateDayMACH N ENAMESTITCHESRU NSCOMPLETEDateMACH N EAvg StitchAvg RunsAvg Complete
210-JanTUESDAYSINGLE HEAD2726221/10/2023SINGLE HEAD60792.52.5
310-JanTUESDAYSINGLE HEAD4184551/11/20238Head5335.5714292.1428571432.142857143
410-JanTUESDAYSINGLE HEAD11208111128355
510-JanTUESDAYSINGLE HEAD1404633
610-JanTUESDAYSINGLE HEAD44411
710-JanTUESDAYSINGLE HEAD401122
810-JanTUESDAYSINGLE HEAD73011
910-JanTUESDAYSINGLE HEAD1128355
1011-JanWednesay8Head272622
1111-JanWednesay8Head418455
1211-JanWednesay8Head1120811
1311-JanWednesay8Head1404633
1411-JanWednesay8Head44411
1511-JanWednesay8Head401122
1611-JanWednesay8Head73011
171128355
Sheet1

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="tblRawData"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Date", "MACH N E"}, {{"Avg Stitch", each List.Average([STITCHES]), type number}, {"Avg Runs", each List.Average([RU NS]), type number}, {"Avg Complete", each List.Average([COMPLETE]), type number}})
in
    #"Grouped Rows"

Any data added to the orginal table will update automatically when the refresh button is selected.
Thanks,

I will have a play. I just tried and couldnt get it i will watch some videos and read some stuff about it.
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,810
Members
449,339
Latest member
Cap N

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