Sumifs to find minimum ad maximum.

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
347
Office Version
  1. 365
Platform
  1. Windows
Hey Dear community,

I have a login details which i need to report. i can't figure out how can i ask excel to find first login and last log out data for each day of month for each person from table? Can anyone help me with VBA or formula please?

B - DATE
C - Name surname
F - Client id
J - login / log out time
 

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.
Hi will below solve your purpose?:


Book1
BCFKMNOP
1DateNameIDLogin/LogoutPersonDateLoginLogout
28/5/2019AA5:52 PMA8/5/20195:52:02 PM8:04:23 PM
38/6/2019AA6:17 AMA8/6/20196:17:10 AM6:03:38 PM
48/7/2019AA4:05 PMA8/7/20194:05:27 PM11:00:23 PM
58/8/2019AA5:09 PMA8/8/20195:09:10 PM9:05:41 PM
68/9/2019AA2:48 AMA8/9/201912:26:35 AM2:48:42 AM
78/10/2019AA7:16 AMA8/10/20197:16:37 AM12:57:57 PM
88/11/2019AA3:25 AMA8/11/20193:25:55 AM7:34:06 AM
98/12/2019AA3:27 AMA8/12/20193:27:37 AM4:12:54 PM
108/13/2019AA2:33 PMA8/13/20192:06:49 AM2:33:35 PM
118/14/2019AA2:25 PMA8/14/20192:21:48 PM2:25:10 PM
128/15/2019AA1:59 AMA8/15/20191:59:15 AM9:22:26 PM
138/16/2019AA10:24 PMA8/16/201912:15:40 PM10:24:18 PM
148/6/2019AA6:46 AMA8/19/201912:53:42 AM12:03:03 PM
158/6/2019AA6:03 PMA8/20/20191:22:24 AM1:59:59 AM
168/19/2019AA12:53 AMA8/21/20193:44:37 PM5:20:19 PM
178/20/2019AA1:22 AMA8/22/20199:15:31 AM1:08:14 PM
188/21/2019AA3:44 PMA8/23/20196:00:26 PM8:18:51 PM
198/22/2019AA9:15 AM
208/23/2019AA6:00 PM
218/5/2019AA8:04 PM
228/6/2019AA11:42 AM
238/7/2019AA11:00 PM
248/8/2019AA9:05 PM
258/9/2019AA12:26 AM
268/10/2019AA12:57 PM
278/11/2019BB6:55 PM
288/12/2019BB4:52 AM
298/13/2019BB4:03 AM
308/14/2019BB11:55 AM
318/15/2019BB10:05 AM
328/16/2019BB4:01 PM
338/17/2019BB1:18 PM
348/18/2019BB12:06 PM
358/19/2019BB1:34 PM
368/20/2019BB2:33 PM
378/21/2019BB4:56 AM
388/22/2019BB2:37 AM
398/23/2019BB11:11 AM
408/11/2019AA7:34 AM
418/12/2019AA4:12 PM
428/13/2019AA2:06 AM
438/14/2019AA2:21 PM
448/15/2019AA9:22 PM
458/16/2019AA12:15 PM
468/19/2019AA12:03 PM
478/20/2019AA1:59 AM
488/21/2019AA5:20 PM
498/22/2019AA1:08 PM
508/23/2019AA8:18 PM
Sheet1
Cell Formulas
RangeFormula
O2=MINIFS($K$2:$K$50,$B$2:$B$50,N2,$C$2:$C$50,M2)
P2=MAXIFS($K$2:$K$50,$B$2:$B$50,N2,$C$2:$C$50,M2)
 
Last edited:
Upvote 0
Thank you for reply mr. but for some reason i get 0 result, O2 is time, when i change it to number it returns value, but it gives 0 as time
 
Last edited:
Upvote 0
Zero comes when there is no entry on that particular day. Are you getting zero for all the examples above?
 
Upvote 0
Can you please check if dates in Column B and time in column K are stored in the proper excel date and time format. As in 08/05/2019 should be 43682 if you convert to general number formatting and time 5:52 PM should be 0.744466307147698. Same should apply to column N for Date.
 
Upvote 0
Dates are 43662 but problem with time when i change format it is not changing ( this problem happens when you take data from server )

tryed with VBA

Code:
Sub Convert()With Worksheets("DATA").Columns(1)
    .NumberFormat = "0"
    .Value = .Value
End With
End Sub

now it works , thanks for help
 
Last edited:
Upvote 0
Glad could help and thanks for the feedback!
 
Last edited:
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