#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Working with Dates

Hi,

I have a formula that works by taking the current date and working out the
number of days between today and another date entered in a seperate cell, the
answer is show as a number.

This works fine, the problem I have is that when i copy the formula down
throughout the sheet, when the 2nd date cell is blank the result box (where
the formula is, is defaulting to 39926, once i enter a date into the 2nd
cell, the formula then works and shows the correct answer.

My question is, is there a way that rather than defaulting to 39926 that the
answer cell could remain blank until a date is entered into the 2nd date cell.

Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Working with Dates

would you show your formula?
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"btyler" wrote:

Hi,

I have a formula that works by taking the current date and working out the
number of days between today and another date entered in a seperate cell, the
answer is show as a number.

This works fine, the problem I have is that when i copy the formula down
throughout the sheet, when the 2nd date cell is blank the result box (where
the formula is, is defaulting to 39926, once i enter a date into the 2nd
cell, the formula then works and shows the correct answer.

My question is, is there a way that rather than defaulting to 39926 that the
answer cell could remain blank until a date is entered into the 2nd date cell.

Thanks in advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Working with Dates

=IF(A1="","",A1-TODAY())
--
Gary''s Student - gsnu200851
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Working with Dates

Hi Francis, many thanks this is my Formula:

=$K$2-G7

K2 is the current date & cell G7 is the variable date, the above formula
retuns the result as a number

For example if K2 is 07/05/09 and G7 is 06/05/09 the result is 1




"Francis" wrote:

would you show your formula?
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"btyler" wrote:

Hi,

I have a formula that works by taking the current date and working out the
number of days between today and another date entered in a seperate cell, the
answer is show as a number.

This works fine, the problem I have is that when i copy the formula down
throughout the sheet, when the 2nd date cell is blank the result box (where
the formula is, is defaulting to 39926, once i enter a date into the 2nd
cell, the formula then works and shows the correct answer.

My question is, is there a way that rather than defaulting to 39926 that the
answer cell could remain blank until a date is entered into the 2nd date cell.

Thanks in advance for any help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Working with Dates

try if this is what you are after
=IF(G7="","",$K$2-G7)

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"btyler" wrote:

Hi Francis, many thanks this is my Formula:

=$K$2-G7

K2 is the current date & cell G7 is the variable date, the above formula
retuns the result as a number

For example if K2 is 07/05/09 and G7 is 06/05/09 the result is 1




"Francis" wrote:

would you show your formula?
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"btyler" wrote:

Hi,

I have a formula that works by taking the current date and working out the
number of days between today and another date entered in a seperate cell, the
answer is show as a number.

This works fine, the problem I have is that when i copy the formula down
throughout the sheet, when the 2nd date cell is blank the result box (where
the formula is, is defaulting to 39926, once i enter a date into the 2nd
cell, the formula then works and shows the correct answer.

My question is, is there a way that rather than defaulting to 39926 that the
answer cell could remain blank until a date is entered into the 2nd date cell.

Thanks in advance for any help.

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
working with dates Jordan Excel Worksheet Functions 2 December 3rd 07 07:43 PM
Working with Dates [email protected] Excel Discussion (Misc queries) 2 July 5th 07 11:41 PM
Working with Dates Byron720 Excel Worksheet Functions 3 December 28th 06 12:02 AM
working with dates Svetlana Excel Worksheet Functions 2 October 3rd 06 04:59 PM
Working with dates Svetlana Excel Discussion (Misc queries) 2 June 16th 06 04:30 PM


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