I have an odd conditional formatting problem that I'm wondering if anybody can help me out with, I spent the majority of my productive workday working on it yesterday and still couldn't figure it out.
I'm trying to come up with a table that basically has the hours of the day down the left hand side in 30 min. intervals, and the date across the top. I want to use it to plot moonrise/moonset times, with the time that the moon is up being a different color.
Using conditional formatting, I've gotten this to work by basically having it this way:
Let's say it rises at 812h and sets at 1626h. In each cell under the date, I've inserted numbers, 0, 30, 100, 130, 200... representing 0:00, 0:30, 1:00, etc. Then, if the cell value is less than 812 and not greater than 1626, it turns blue. This works in the majority of cases.
The problem comes about when let's say the moon rises at 1826h, but sets at 123h the next day. My chart for that date then becomes inverted and I seriously can't figure out how to do it without plugging in the values manually.
Here is the example, you can see that around Jan. 15th it gets all messed up. Is there any way to do this?
http://www.15sunrises.com/images/January.xls
Note, on January 17th, 2:38 is the time that the January 16th moon sets. Essentially, on the 17th, there would need to be blue between 0:00 and 2:38 (so 3:00) in order for it to be correct.
I can't get this to work whatsoever, I hope that maybe you guys can help me out!
thanks!
Bookmarks