i have dates and times like 23 May 2011 06:00 , 23 May 2011 10:27 and 22 May 2011 18:00 in a column. values corresping to these date and time are in another column. i am trying to manipulate the date and time with a formula so that i could select the right value for the date. Direct date time conversion did not work. so i converted the date time using Timevalue() and then use a formula like IF(AND(C2>=B2,C2<=A2),F2,0). what i am doing is to define a time window to select the right value. but this is not working correctly because the timevalue() function returned for the date time is not correct. anyway all i want to do is to take a date / time window and return the value corresponding to that date time. any help is appreciated.