Extract Max Value (Minutes) per day

Cyril Beki

Board Regular
Joined
Sep 18, 2021
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
I have Machine Problem Data with multiple records per day. I would like to extract the highest minutes per day. How do I get excel to do this ?
I have 17 Columns but Machine Problem Data is in column 13 while the Duration (minutes) take to fix the machine is in column 19

For example: raw data looks as follows
NoDateSomethingSomethingSomething ProblemDowntimeUptimeDuration(Minutes)Something
110/1/2021N/AN/AN/ABelting21:3022:0030:00
210/1/2021N/AN/AN/ACylinder23:0001:00120:00
310/2/2021N/AN/AN/ACylinder04:0004:3030:00
410/2/2021N/AN/AN/APiping06:0008:00120:00

Max per day table would look as follows:
DateProblemMax Duration
10/1/2021Cylinder120:00
10/2/2021Piping120:00

I already try to use pivot to extract maximum value but i get this error (refer image). I need max per day data to create line graph. I hope someone can help me with this. Thanks in advance
Max.PNG
 
Are you limited to excel 2016? It would be much easier with dynamic arrays in office 365 / excel 2021
Book1
ABCDEFGHIJ
1NoDateSomethingSomethingSomethingProblemDowntimeUptimeDuration(Minutes)Something
2110/01/2021N/AN/AN/ABelting21:30:0022:00:0030:00
3210/01/2021N/AN/AN/ACylinder23:00:0001:00:00120:00
4310/02/2021N/AN/AN/ACylinder04:00:0004:30:0030:00
5410/02/2021N/AN/AN/APiping06:00:0008:00:00120:00
6
710/01/2021Belting30:00
810/01/2021Cylinder120:00
910/02/2021Piping120:00
Sheet27
Cell Formulas
RangeFormula
I2:I5I2=MOD(H2-G2,1)
B7:D9B7=FILTER(FILTER(B2:I5,I2:I5=MAXIFS(I2:I5,F2:F5,F2:F5),""),{1,0,0,0,1,0,0,1})
Dynamic array formulas.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How did you try setting up the pivot? I would have used Date and Problem as row headers (either one first depending on preference), then dragging Duration into the values box.
Book1
ABCDEFGHIJ
1NoDateSomethingSomethingSomethingProblemDowntimeUptimeDuration(Minutes)Something
2110/01/2021N/AN/AN/ABelting21:30:0022:00:0030:00
3210/01/2021N/AN/AN/ACylinder23:00:0001:00:00120:00
4310/02/2021N/AN/AN/ACylinder04:00:0004:30:0030:00
5410/02/2021N/AN/AN/APiping06:00:0008:00:00120:00
6
7
8Row LabelsMax of Duration(Minutes)
910/01/2021120:00
10Belting30:00
11Cylinder120:00
1210/02/2021120:00
13Cylinder30:00
14Piping120:00
15Grand Total120:00
Sheet27
Cell Formulas
RangeFormula
I2:I5I2=MOD(H2-G2,1)
Hello @Jason
Duration.PNG


The pivot i used is something like this, everything when fine when i picked Max of duration but when i change it to Max of Duration (Minute). The error pop up (previous error i show in previous post)
 
Upvote 0
I think that the times in that column could be text, which will be a problem. When I copied your table to excel I had to fix some of the data but I though that it was just because of the way that you copied the table to the forum. Check the formatting and the actual value of the duration times in the source table. If you change the format to general and the times change to decimal numbers then they are good. If they remain as times then they are bad.

I'm done here for the day, will check back in the morning to see if you've been able to make any progress.
 
Upvote 0
I think that the times in that column could be text, which will be a problem. When I copied your table to excel I had to fix some of the data but I though that it was just because of the way that you copied the table to the forum. Check the formatting and the actual value of the duration times in the source table. If you change the format to general and the times change to decimal numbers then they are good. If they remain as times then they are bad.

I'm done here for the day, will check back in the morning to see if you've been able to make any progress.
I already fix my issue but now i only wanted the line chart to show only max value based on day. How can i do that, refer image for reference
 

Attachments

  • line chart.PNG
    line chart.PNG
    26.1 KB · Views: 5
Upvote 0
As the original question was about extracting the max and not creating a chart from the extracted data it would probably be beneficial if you started a new thread for this part.
 
Upvote 0
Are you limited to excel 2016? It would be much easier with dynamic arrays in office 365 / excel 2021
Book1
ABCDEFGHIJ
1NoDateSomethingSomethingSomethingProblemDowntimeUptimeDuration(Minutes)Something
2110/01/2021N/AN/AN/ABelting21:30:0022:00:0030:00
3210/01/2021N/AN/AN/ACylinder23:00:0001:00:00120:00
4310/02/2021N/AN/AN/ACylinder04:00:0004:30:0030:00
5410/02/2021N/AN/AN/APiping06:00:0008:00:00120:00
6
710/01/2021Belting30:00
810/01/2021Cylinder120:00
910/02/2021Piping120:00
Sheet27
Cell Formulas
RangeFormula
I2:I5I2=MOD(H2-G2,1)
B7:D9B7=FILTER(FILTER(B2:I5,I2:I5=MAXIFS(I2:I5,F2:F5,F2:F5),""),{1,0,0,0,1,0,0,1})
Dynamic array formulas.
Is there other formula for dynamic array ? limited to excel 2016
 
Upvote 0
Dynamic arrays are exclusive to the latest version of excel. I don't think that an alternative with regular formulas will work but I'll have a look at it when I get chance.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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