tly0227
New Member
- Joined
- Oct 2, 2012
- Messages
- 37
I have a spreadsheet that I am trying to calculate the elapsed time between a start and end time. This is a spreadsheet that I get from IT that shows when a student has logged in and out at our tutoring center on campus. After I have the elapsed time in h:mm format, I want to convert that to decimal format. I figured that part out, I just can't get the elapsed time to calculate right. Here is an example of how my sheet is set up.
A-C Columns are irrelevant for this calculation.
D E F G
1 Sign In Sign Out Elapsed Time Time Decimal
2 8:36 AM 10:24 AM =F2*24
3 10:50 AM 12:03 PM =F3*24
This goes on for over 2000 rows. So I really want this to work. If I put a time in column F, G is calculating correctly, so no issues there. I have column F formatted as Custom> h:mm. The sign in and sign out times for each row are never going to be on different days, so Sign In time will always be earlier than Sign Out time. I read somewhere online to use the formula =MAX(D2:E2)-MIN(D2:E2), but that didn't work. When I do that, I just get the result 0:00. I've tried =E2-D2 as well but that gives me #VALUE. I'm sure it's probably something in the formatting of the D and E cells, but I've tried a whole bunch of different options and nothing changes what I'm getting in F.
Any help is greatly appreciated. I'm about ready to pull my hair out over this. I'm pretty decent at Excel, but every once in a while I gotta do something that just doesn't work like I want it to.
Thanks.
A-C Columns are irrelevant for this calculation.
D E F G
1 Sign In Sign Out Elapsed Time Time Decimal
2 8:36 AM 10:24 AM =F2*24
3 10:50 AM 12:03 PM =F3*24
This goes on for over 2000 rows. So I really want this to work. If I put a time in column F, G is calculating correctly, so no issues there. I have column F formatted as Custom> h:mm. The sign in and sign out times for each row are never going to be on different days, so Sign In time will always be earlier than Sign Out time. I read somewhere online to use the formula =MAX(D2:E2)-MIN(D2:E2), but that didn't work. When I do that, I just get the result 0:00. I've tried =E2-D2 as well but that gives me #VALUE. I'm sure it's probably something in the formatting of the D and E cells, but I've tried a whole bunch of different options and nothing changes what I'm getting in F.
Any help is greatly appreciated. I'm about ready to pull my hair out over this. I'm pretty decent at Excel, but every once in a while I gotta do something that just doesn't work like I want it to.
Thanks.