Time behaving strangely

Tesnobay

New Member
Joined
Jan 8, 2013
Messages
24
Hi, I upload a file of my blood pressure readings that includes the date and time the reading was taken. I was trying to group the entries by AM (6am-12: noon), PM (12:01pm-06:00pm) and Evening (6:01pm-11:59pm). I will also want to Average my readings during each of those time frames. I originally tried AVERAGEIFS, but then I realized the strange behavior.
Take 6:00 pm, when I applied conditional formatting to that time, it thought that it was a lesser value than 12:00 pm, I suppose because 6 is less than 12, but 6pm is a greater number or later time than 12 pm. I would think that military time would solve the issue, but this is starting to be higher than my pay grade. i don't have any reason for military time, and it seems like a wasted step to convert all those entries.

Any help or thoughts?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
It's not clear from your question whether you have date/time in the same cell, or in two different cells?

Or whether your dates/times are numeric, or text values?

If you just have the times stored as numbers, 6:00:00 PM (value 0.75) is greater than 12:00:00 PM (0.5).
 
Upvote 0
It's not clear from your question whether you have date/time in the same cell, or in two different cells?

Or whether your dates/times are numeric, or text values?

If you just have the times stored as numbers, 6:00:00 PM (value 0.75) is greater than 12:00:00 PM (0.5).
1718075312530.png


This is what it looks like. The time is formatted at time
 
Upvote 0
Take 6:00 pm, when I applied conditional formatting to that time, it thought that it was a lesser value than 12:00 pm
How are you applying the conditional formatting that shows 6:00 PM as less than 12:00 PM?

And what about the AVERAGEIFS that produce strange results?
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,114
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