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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Based on the popup message, it looks like your times are text strings rather than valid times. If they were proper times then it would allow you to do what you want to.

Select the cells with the times, then press Shift Ctrl ~
If the times change to numbers then they are valid, if they stay as times then they are not valid.

Press Ctrl z to undo and return to the previous state.
 
Upvote 0
see if this helps

Book2
ABCDEFGHI
1NoDateSomethingSomethingSomethingProblemDowntimeUptimeDuration(Minutes)
2110-Jan-21N/AN/AN/ABelting21:3022:0030:00:00
3210-Jan-21N/AN/AN/ACylinder23:001:00120:00:00
4310-Feb-21N/AN/AN/ACylinder4:004:3030:00:00
5410-Feb-21N/AN/AN/APiping6:008:00120:00:00
6
7
8DATEProblemMax Duration
910-Jan-21Cylinder120:00:00
1010-Feb-21Piping120:00:00
Sheet1
Cell Formulas
RangeFormula
B9:B10B9=MIN(IF(B8<>$B$2:$B$5, $B$2:$B$5,""))
C9:C10C9=INDEX($F$2:$F$5,MATCH(1,(D9=$I$2:$I$5)*(B9=$B$2:$B$5),0))
D9:D10D9=MAX(IF(B9=$B$2:$B$5, $I$2:$I$5,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Based on the popup message, it looks like your times are text strings rather than valid times. If they were proper times then it would allow you to do what you want to.

Select the cells with the times, then press Shift Ctrl ~
If the times change to numbers then they are valid, if they stay as times then they are not valid.

Press Ctrl z to undo and return to the previous state.
@jasonb75 i try doing your suggestion, it do change to number when i press shift ctrl ~.
 

Attachments

  • Number.PNG
    Number.PNG
    1.3 KB · Views: 10
Upvote 0
In that case, it sounds like you're trying to set the pivot up incorrectly. I'm going to be afk for the rest of the day, hopefully @hrayani can provide further assistance.
 
Upvote 0
In that case, it sounds like you're trying to set the pivot up incorrectly. I'm going to be afk for the rest of the day, hopefully @hrayani can provide further assistance.
Hi Jason,
I have no knowledge about pivot.
I already offered what I had in post # 3 but it seems like the OP is not interested in that
 
Upvote 0
I already try to use pivot to extract maximum value but i get this error (refer image).
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)
 
Upvote 0
Solution
hello @hrayani
I tried your formula and it works, but i would like the range to be automatically filled when new data is added. How can it do that ?

Example
For example: Data after added
NoDateSomethingSomethingSomethingProblemDowntimeUptimeDuration(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
510/3/2021N/AN/AN/AMotor07:0009:00120:00
610/3/2021N/AN/AN/AServo08:0009:0060:00

Automatically update below
DateProblemMax Duration
10/1/2021Cylinder120:00
10/2/2021Piping120:00
10/3/2021Motor120:00
 
Upvote 0

Forum statistics

Threads
1,215,593
Messages
6,125,715
Members
449,254
Latest member
Eva146

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