David McRitchie wrote:
> Are you working in the worksheet or in a macro.
>
> They are worksheet functions
> the first one is strictly logical it returns True or False
> the other two would be probably in adjacent columns
> one would repeat the time if noon or thereafter, and the
> other would repeat the time if before noon
> ---
> HTH,
> David McRitchie, Microsoft MVP - Excel
> My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
> Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
>
> "az-willie" <(E-Mail Removed)> wrote in message news:Jv7Ah.18392$(E-Mail Removed)...
>> David McRitchie wrote:
>>>> I used the formula IF D2<12:00 and it says it is invalid. It won't
>>>> accept 12:00. Grrr.
>>> Try =D2<TIME(12,0,0)
>>> =IF(D2<TIME(12,0,0),"",D2)
>>> =IF(D2<TIME(12,0,9),D2,"")
>>>
>>>
>> ================
>> I'm dumb today ... well I'm admitting to today 
>> I don't understand this. Hmmmm.
>
>
===================
I'm beginning to understand ... I think
What I'm trying to do is take reading from my glucose meter ( diabetes )
that I enter into the spreadsheet and graph them according to time of day.
Basically I would like to have morning, mid-day, and evening readings
grouped together.
I don't understand the 9 in the third forumula -- why you use 9.
I wanted to have a column for each of the 3 time periods and a formula
that would check the time in column C and, depending on the time of day,
either enter the reading in column D or a zero or nothing ( as your
formula does ).
Then average each column and graph the average. Many difference graphs
could be developed form the numbers as they are subtotaled by day and
week etc.
I converted standard time to military to avoid duplicate numbers such as
10:25.
I believe I see how to get the reading when the time is after a certain
time, but how would I get the result when the time is between say 7:00
and 12:00 and between 12:01 and 6:00 between 6:01 and 11:59?