View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default IF function using TIME

=IF(A1="n/a",3,IF(B1="n/a",4,IF(B1-A1<=1/24,1,2)))

--
Gary''s Student - gsnu200805