David said:
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
===================
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?