#1   Report Post  
armyaviatr
 
Posts: n/a
Default time lookup

I am trying to do a conditional formating where the time entered into a cell
is checked against a list with sun rise and sun set values for a specific
area.

Date Sun Rise Sun set
20051001 5:55 17:47
20051002 5:56 17:46

The end result would be if the time is outside of Sun rise and Sun set the
cell would change color, but still allow the time to be entered.
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

Let's say the data to be checked is being entered in column D:

20051001 5:55 17:47 18:00
20051002 5:56 17:46 11:00

Click on D1 (the 18:00) and pull-down Format Conditional Formating...

and then add two separate conditions. If D1 is less that B1, color the cell.
If D1 is greater than C1, color the cell. Experiment by changing the value
in D1 until you are satisfied with the appearance. Then copy the format down
the column.

Have a good day
--
Gary's Student


"armyaviatr" wrote:

I am trying to do a conditional formating where the time entered into a cell
is checked against a list with sun rise and sun set values for a specific
area.

Date Sun Rise Sun set
20051001 5:55 17:47
20051002 5:56 17:46

The end result would be if the time is outside of Sun rise and Sun set the
cell would change color, but still allow the time to be entered.

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

When the time is entered, how should XL know which date it applies to?


In article ,
"armyaviatr" wrote:

I am trying to do a conditional formating where the time entered into a cell
is checked against a list with sun rise and sun set values for a specific
area.

Date Sun Rise Sun set
20051001 5:55 17:47
20051002 5:56 17:46

The end result would be if the time is outside of Sun rise and Sun set the
cell would change color, but still allow the time to be entered.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate Date & Time differences robs Excel Worksheet Functions 2 October 4th 05 04:22 PM
help with date and time wayne visser Excel Worksheet Functions 1 June 14th 05 04:10 PM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM


All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"