EXTRACTING MIN AND MAX TIME FROM TIME STRING

dockery0848

New Member
Joined
May 20, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Web
I need to extract the minimum and maximum times (separately) from a list of times based on one criteria. The list is in military time and I am not getting the max time correct.
this is the formula i am using - =IF(ISERROR(MAXIFS(PLAN!$O:$O,PLAN!$D:$D,'Perf Ind'!L4)),"",MAXIFS(PLAN!$O:$O,PLAN!$D:$D,'Perf Ind'!L4)) - I extracted the start and end times from the string in column E and F but when I put in the formula for max time, it gives me 23:00 because that is the biggest. How can I make this formula pick 4:55?

Op No.SortProgramTourRun#StartEndFedMODSLast UpdatedFEDSTARTEND
439000​
439PCITY
1​
47​
5/18/2023 23:00​
5/19/2023 4:55​
28187​
5/18/2023​
5/4/2023 9:05​
28187​
23:00​
4:55​
439000​
439PCITY
3​
48​
5/18/2023 17:00​
5/18/2023 23:00​
28584​
5/18/2023​
5/4/2023 9:05​
28584​
17:00​
23:00​
 
Yes, but you need to use minifs rather than maxifs.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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