Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default CONDITIONAL STATEMENT

I'm trying to test a cell D5 which contains a time eg '07:00' to see if falls
within a time range or is blank or to print it if it is within range. Excel
indicates an error???

=if(or(D5, 06:30, D58:00), "CHECK TIME" , D5)

I've tried other simple statements, but none work! Help!!
--
BANJO
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default CONDITIONAL STATEMENT

Perhaps you intended to say =IF(OR(D5<TIME(6,30,0), D5TIME(8,0,0)), "CHECK
TIME", D5) ?
--
David Biddulph

"BANJO" wrote in message
...
I'm trying to test a cell D5 which contains a time eg '07:00' to see if
falls
within a time range or is blank or to print it if it is within range.
Excel
indicates an error???

=if(or(D5, 06:30, D58:00), "CHECK TIME" , D5)

I've tried other simple statements, but none work! Help!!
--
BANJO



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default CONDITIONAL STATEMENT

Try it like this:

=IF(OR(D5="",D5<TIME(6,30,0),D5TIME(8,0,0)),"CHEC K TIME",D5)

Hope this helps.

Pete

On Mar 31, 3:31*pm, BANJO wrote:
I'm trying to test a cell D5 which contains a time eg '07:00' to see if falls
within a time range or is blank or to print it if it is within range. Excel
indicates an error???

=if(or(D5, 06:30, D58:00), "CHECK TIME" , D5)

I've tried other simple statements, but none work! *Help!!
--
BANJO


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
Conditional Statement regdor Excel Worksheet Functions 8 January 4th 08 09:36 PM
Conditional Statement lbraddock Excel Worksheet Functions 0 July 16th 07 10:16 PM
Conditional If statement Dan Excel Worksheet Functions 0 March 26th 06 11:46 PM
conditional statement mjstizzle New Users to Excel 1 June 29th 05 05:18 PM
Conditional if statement Matt Stanley Excel Worksheet Functions 2 November 10th 04 04:47 AM


All times are GMT +1. The time now is 01:03 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"