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​
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Could you give the coordinates of your data? Which columns the date&time is in? Is this on a web based workbook or on a local, pc based, workbook?
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IFERROR(MOD(MAXIFS(PLAN!$F:$F,PLAN!$D:$D,'Perf Ind'!L4),1),"")
 
Upvote 0
Gave me the same 23:00 and I was looking for 04:45, which would be the latest time.
 
Upvote 0
the problem is that the numbers are formatted in 24 hour format - 13:50, with a colon and I can't get it to extract the latest one - to recognize the numbers past midnight at the later times. Please help
 
Upvote 0
Did you use col F which has the date? as it works for me
Fluff.xlsm
ABCDEFGHIJKLM
1Op No.SortProgramTourRun#StartEndFedMODSLast UpdatedFEDSTARTEND47
2439000439PCITY14718/05/2023 23:0019/05/2023 04:552818718/05/202304/05/2023 09:052818723:0004:5504:55:00
3439000439PCITY34818/05/2023 17:0018/05/2023 23:002858418/05/202304/05/2023 09:052858417:0023:00
4439000439PCITY14718/05/2023 23:0019/05/2023 03:552818718/05/202304/05/2023 09:052818723:0004:55
5439000439PCITY34718/05/2023 17:0018/05/2023 23:002858418/05/202304/05/2023 09:052858417:0023:00
Master
Cell Formulas
RangeFormula
M2M2=IFERROR(MOD(MAXIFS($F:$F,$D:$D,M1),1),"")
 
Upvote 0
Maybe I'm not explaining it correctly but I really appreciate the help. I am attempting to extract the earliest (in one column) and the latest (in another column) for the same operation in the first column. For example, in the example, I should get 17:00 as the earliest and 4:55 for the latest. The issue I am having is that this is 24 hour format and I always get the latest time as 23:00.
 
Upvote 0

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