Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jc jc is offline
external usenet poster
 
Posts: 164
Default Ref earlier post "Excel Time Calculation"

For the formula in D2 "=C2-time(,50,) with no time in cell C2, can the
default value ####### be changed (to zero (0) or a blank cell)

Regards

jc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Ref earlier post "Excel Time Calculation"

Try this:

=IF(C2=0,0,C2-time(,50,)

Change the second 0 to "" if you want it to appear blank.

Hope this helps.

Pete

On Nov 7, 6:14 pm, jc wrote:
For the formula in D2 "=C2-time(,50,) with no time in cell C2, can the
default value ####### be changed (to zero (0) or a blank cell)

Regards

jc



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Ref earlier post "Excel Time Calculation"

Try

=MAX(C2-TIME(,50,),0)


it's important that you format D2 as


hh:mm:ss

or

hh:mm

otherwise it defaults to AM/PM formatting and 0 will be returned as 12:00 AM


--


Regards,


Peo Sjoblom



"jc" wrote in message
...
For the formula in D2 "=C2-time(,50,) with no time in cell C2, can the
default value ####### be changed (to zero (0) or a blank cell)

Regards

jc



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Ref earlier post "Excel Time Calculation"

Sorry, bracket missing from the end of my formula:

=IF(C2=0,0,C2-time(,50,))

Pete

On Nov 7, 7:03 pm, Pete_UK wrote:
Try this:

=IF(C2=0,0,C2-time(,50,)

Change the second 0 to "" if you want it to appear blank.

Hope this helps.

Pete

On Nov 7, 6:14 pm, jc wrote:



For the formula in D2 "=C2-time(,50,) with no time in cell C2, can the
default value ####### be changed (to zero (0) or a blank cell)


Regards


jc- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.misc
jc jc is offline
external usenet poster
 
Posts: 164
Default Ref earlier post "Excel Time Calculation"

Magic formulas. All sorted now. Thanks Pete & Peo.
I'm sure I'll be back with other questions.
jc

"Peo Sjoblom" wrote:

Try

=MAX(C2-TIME(,50,),0)


it's important that you format D2 as


hh:mm:ss

or

hh:mm

otherwise it defaults to AM/PM formatting and 0 will be returned as 12:00 AM


--


Regards,


Peo Sjoblom



"jc" wrote in message
...
For the formula in D2 "=C2-time(,50,) with no time in cell C2, can the
default value ####### be changed (to zero (0) or a blank cell)

Regards

jc




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
Creating a "one time only" calculation field? Neal Excel Worksheet Functions 2 February 9th 07 05:09 PM
"Disk is Full" add-on question to "Can't reset last cell" post tod [email protected] Excel Discussion (Misc queries) 0 January 22nd 07 02:32 AM
Incompatible "allow users to edit range" in earlier Excel versions PKnott Excel Discussion (Misc queries) 1 June 17th 06 01:28 AM
I'm desperate I posted earlier about "If" statements that don't work but are correct. Now... Marc Excel Worksheet Functions 2 April 5th 06 09:27 PM
Should I generally request "post a poll" when I post a new thread? Joe Miller Excel Discussion (Misc queries) 2 January 7th 06 04:46 PM


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