Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 516
Default Using a date formula!

I am using the formula:
=MIN(INT((TODAY()-D-10)/365)+1,4) to calulate from todays date to a past
date and return the number years past with a max of 4 years.

The problem: when I formulate the worksheet I will get "4" in the cell
because it will calculate from today to 1-1-1900, how can I formulate a cell
and get a default value of "0" or blank until I enter a date to which I want
a calculation? I want to formulate the entire sheet and have it only
calculate when I enter a date?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Using a date formula!

On Nov 19, 1:11 pm, Matt wrote:
I am using the formula:
=MIN(INT((TODAY()-D-10)/365)+1,4) to calulate from todays date to a past
date and return the number years past with a max of 4 years.

The problem: when I formulate the worksheet I will get "4" in the cell
because it will calculate from today to 1-1-1900, how can I formulate a cell
and get a default value of "0" or blank until I enter a date to which I want
a calculation? I want to formulate the entire sheet and have it only
calculate when I enter a date?


Maybe not the most efficient, but you could use an if then
statement..such as 100 or 1/1/1900 date.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Using a date formula!

=IF(cell_with_date="",0,MIN(DATEDIF(cell_with_date ,TODAY(),"y"),4))


--


Regards,


Peo Sjoblom


"Matt" wrote in message
...
I am using the formula:
=MIN(INT((TODAY()-D-10)/365)+1,4) to calulate from todays date to a past
date and return the number years past with a max of 4 years.

The problem: when I formulate the worksheet I will get "4" in the cell
because it will calculate from today to 1-1-1900, how can I formulate a
cell
and get a default value of "0" or blank until I enter a date to which I
want
a calculation? I want to formulate the entire sheet and have it only
calculate when I enter a date?



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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


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