Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Insert Current Date when cell is empty??

HI

Apologies for this - I just seem to have left my brain at home today.

Essentially I'm calculating the time difference in hours between IssueLogged
and IssueClosed - this bit I have solved ...
=int(IssueClosed-IssueLogged)*24) ...., but the second part I need is if
IssueClosed is empty, get Excel use the current date and use this to show how
long it has been since the Issue was logged.

any/all help appreciated!
D
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Insert Current Date when cell is empty??

One way:

=INT((MIN(IssueClosed,NOW()) - IssueLogged)*24)

In article ,
Dazed&confused! wrote:

HI

Apologies for this - I just seem to have left my brain at home today.

Essentially I'm calculating the time difference in hours between IssueLogged
and IssueClosed - this bit I have solved ...
=int(IssueClosed-IssueLogged)*24) ...., but the second part I need is if
IssueClosed is empty, get Excel use the current date and use this to show how
long it has been since the Issue was logged.

any/all help appreciated!
D

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Insert Current Date when cell is empty??

Thanks for this - it didn't quiet work tho. I put in date of 05/01/2007
07:00 (5th Jan 07, 7am) and left the IssueClosed cell empty and the formula
came back with value of 51. I checked formatting of the columns etc and
can't see anything wrong with them. The formula returned the expected result
when I put in a date to the IssueClosed cell. Should I force an entry into
the IssueClosed cell of 0??

"JE McGimpsey" wrote:

One way:

=INT((MIN(IssueClosed,NOW()) - IssueLogged)*24)

In article ,
Dazed&confused! wrote:

HI

Apologies for this - I just seem to have left my brain at home today.

Essentially I'm calculating the time difference in hours between IssueLogged
and IssueClosed - this bit I have solved ...
=int(IssueClosed-IssueLogged)*24) ...., but the second part I need is if
IssueClosed is empty, get Excel use the current date and use this to show how
long it has been since the Issue was logged.

any/all help appreciated!
D


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Insert Current Date when cell is empty??

Check the formula again. When I put 5 Jan 2007 07:00 in IssueLogged and
leave IssueClosed blank, the formula returns 775, which is correct.



In article ,
Dazed&confused! wrote:

Thanks for this - it didn't quiet work tho. I put in date of 05/01/2007
07:00 (5th Jan 07, 7am) and left the IssueClosed cell empty and the formula
came back with value of 51. I checked formatting of the columns etc and
can't see anything wrong with them. The formula returned the expected result
when I put in a date to the IssueClosed cell. Should I force an entry into
the IssueClosed cell of 0??

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Insert Current Date when cell is empty??

Thanks JE - I had some old formula lurking in that cell.
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
Click a cell and update to current time / date ? Eric Excel Discussion (Misc queries) 3 October 4th 06 12:12 AM
How can I check a cell for current date and insert it if blank? Don K New Users to Excel 3 September 29th 06 02:46 PM
Empty Date Cell as Zero [email protected] Excel Discussion (Misc queries) 1 September 22nd 06 01:09 AM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM


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