Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 262
Default How to find out a time

I have a column with the format of custom hh:mm. As you can guess its a list
of times.

In another column I want to have a 0 if the time is not between 8am and 6pm
and and a 1 if it is.

How can i do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to find out a time

Keith,

Put this alingside your first time and drag down:-


=IF(AND(A1TIME(8,0,0),A1<TIME(18,0,0)),1,0)

Mike


"Keith" wrote:

I have a column with the format of custom hh:mm. As you can guess its a list
of times.

In another column I want to have a 0 if the time is not between 8am and 6pm
and and a 1 if it is.

How can i do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to find out a time

=--AND(A1=--"08:00",A1<=--"18:00")
or (if the column might be date & time, formatted to show just the time)
=--AND(MOD(A1,1)=--"08:00",MOD(A1,1)<=--"18:00")
--
David Biddulph

"Keith" wrote in message
...
I have a column with the format of custom hh:mm. As you can guess its a
list
of times.

In another column I want to have a 0 if the time is not between 8am and
6pm
and and a 1 if it is.

How can i do this?



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
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
How do I find more than two digits at the same time? dinopino Excel Worksheet Functions 1 October 21st 06 09:10 PM
How do I find the average time? SharonTraff Excel Worksheet Functions 3 October 11th 06 08:14 PM
I need to find the yy/mm/dd AND hh:mm:ss between 2 time stamps Pontoon Excel Discussion (Misc queries) 5 June 22nd 06 01:23 PM
How can i find time in various time zone? priya_yuvaraj New Users to Excel 1 November 11th 05 05:42 AM


All times are GMT +1. The time now is 02:16 AM.

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"