Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Date formual issue

Hi everyone

I have two colums with dates in and I want to subtract one from the other so
so I can get hte dumber of days between the two, this is the east part. The
problem I have is when one of the colums is blank I want to use todays date
so I can avoid #VALUE! being returned, I been reading a looking up posts here
for the best part of two hours and can not find the answer, can anyone help
me please?

Many thanks
Martyn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Date formual issue

On Tue, 25 Mar 2008 12:31:12 -0700, Martyn
wrote:

Hi everyone

I have two colums with dates in and I want to subtract one from the other so
so I can get hte dumber of days between the two, this is the east part. The
problem I have is when one of the colums is blank I want to use todays date
so I can avoid #VALUE! being returned, I been reading a looking up posts here
for the best part of two hours and can not find the answer, can anyone help
me please?

Many thanks
Martyn



Try this:

Replace B1 with IF(ISBLANK(B1),TODAY(),B1)

To get the number of days between two dates you just have to subtract
them.

=IF(ISBLANK(B1),TODAY(),B1)-IF(ISBLANK(A1),TODAY(),A1)

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Date formual issue

If you really want to use today's date then use:

=A1-(MAX(TODAY(),B1))

or:

=MAX(A1,TODAY())-B1

depending of which date will be blank or:

=IF(COUNT(A16:B16)<2,"",A16-B16)

to only calculte when there are two dates showing.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Martyn" wrote in message
...
Hi everyone

I have two colums with dates in and I want to subtract one from the other
so
so I can get hte dumber of days between the two, this is the east part.
The
problem I have is when one of the colums is blank I want to use todays
date
so I can avoid #VALUE! being returned, I been reading a looking up posts
here
for the best part of two hours and can not find the answer, can anyone
help
me please?

Many thanks
Martyn



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
8000 formual issue Chris Excel Discussion (Misc queries) 1 September 5th 07 08:21 PM
Date issue Jim Savage Excel Discussion (Misc queries) 7 February 9th 07 03:48 PM
DATE ISSUE! Joan Excel Worksheet Functions 2 June 15th 06 03:39 PM
Date issue polk383 Excel Worksheet Functions 3 June 10th 06 06:21 PM
equal sign in front of date in formual bar Ron 130 Excel Worksheet Functions 1 April 5th 06 10:23 PM


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