rsj88

New Member
Joined
Feb 20, 2018
Messages
38
Hi guys i have the below table:

if i have a date in A1 i want to get the max time for that date.

Thanks

datetime
01/01/201918:45
01/01/201918:45
01/01/201918:45
01/01/201918:45
01/01/201918:45
02/01/201908:23
02/01/201908:23
03/01/201908:24
03/01/201923:24

<tbody>
</tbody>


<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi, if you have a newer version of Excel take a look at MAXIFS(), otherwise here is one option.


Excel 2013/2016
AB
103/01/201923:24
2
3datetime
401/01/201918:45
501/01/201918:45
601/01/201918:45
701/01/201918:45
801/01/201918:45
902/01/201908:23
1002/01/201908:23
1103/01/201908:24
1203/01/201923:24
Sheet1
Cell Formulas
RangeFormula
B1=AGGREGATE(14,6,B4:B12/(A4:A12=A1),1)
 
Last edited:
Upvote 0
or

datetimedatetime
01/01/2019​
18:45​
01/01/2019​
18:45:00​
01/01/2019​
18:45​
02/01/2019​
08:23:00​
01/01/2019​
18:45​
03/01/2019​
23:24:00​
01/01/2019​
18:45​
01/01/2019​
18:45​
02/01/2019​
08:23​
02/01/2019​
08:23​
03/01/2019​
08:24​
03/01/2019​
23:24​

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Type = Table.TransformColumnTypes(Source,{{"date", type date}, {"time", type time}}),
    Group = Table.Group(Type, {"date"}, {{"time", each List.Max([time]), type time}})
in
    Group[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,215,112
Messages
6,123,162
Members
449,099
Latest member
afishi0nado

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