View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Phrank Phrank is offline
external usenet poster
 
Posts: 153
Default Greater than/Less than a certain Time

Excellent! All works now. Formatting was wrong. Thank you very much
everyone!

Frank

On Thu, 23 Nov 2006 08:31:01 -0800, Teethless mama
wrote:

Try this:

=IF(K2="","",IF(K2<--"3:30 PM","yes","no"))


"Phrank" wrote:

Hello,

I've got a helper column (column B) with a formula that looks at a
time stamp in column A. I'm trying to get each cell in column B to
say Yes if the time in the adjoining cell in column A is earlier than
3:30 pm, and No if it's later than 3:30 pm. What I currently have is
below, but this returns the error message #NAME?

=IF(K2="","",IF(K2<3:30 PM,"yes","no"))

I also tried putting the desired cutoff time in quotes (as below), but
that returns 'no' no matter what time is in the cell.

=IF(K2="","",IF(K2<"3:30 PM","yes","no"))

What do I need to change to make this work? Thanks.

Frank