Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula in excel using date criteria

I'm trying to formulate a cell where the criteria is as follows;

=IF(A1+365+365-1)<01/01/07,"Asset Fully Depreciated","??/??/??")

A1 = Acquisition date...
and (A1+365+365-1 would arrive at 31Dec06 - implying a 2yr life for an asset)

So what I'm trying to say is that is the asset has expired after it's 2yr
life, then I want it to say "Asset fully depreciated", otherwise, I want it
give me the date at which 2 years expires.
Am I asking too much from excel?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Formula in excel using date criteria

=IF(A1+365+365-1)<--"01/01/07","Asset Fully Depreciated","??/??/??")


"Pempa" wrote:

I'm trying to formulate a cell where the criteria is as follows;

=IF(A1+365+365-1)<01/01/07,"Asset Fully Depreciated","??/??/??")

A1 = Acquisition date...
and (A1+365+365-1 would arrive at 31Dec06 - implying a 2yr life for an asset)

So what I'm trying to say is that is the asset has expired after it's 2yr
life, then I want it to say "Asset fully depreciated", otherwise, I want it
give me the date at which 2 years expires.
Am I asking too much from excel?

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Formula in excel using date criteria

On Fri, 16 Mar 2007 09:56:23 -0700, Pempa
wrote:

I'm trying to formulate a cell where the criteria is as follows;

=IF(A1+365+365-1)<01/01/07,"Asset Fully Depreciated","??/??/??")

A1 = Acquisition date...
and (A1+365+365-1 would arrive at 31Dec06 - implying a 2yr life for an asset)

So what I'm trying to say is that is the asset has expired after it's 2yr
life, then I want it to say "Asset fully depreciated", otherwise, I want it
give me the date at which 2 years expires.
Am I asking too much from excel?

Thanks,


No, you're just making a few common errors.

First of all, to express a date:

You write 01/01/07 in a formula. Excel will translate that as
= 1/1/7 -- 0.142857143

If you want Excel to interpret that string as a date, then you must enclose it
in quotes "01/01/07" or, the least ambiguous method would be:

=DATE(2007,1,1)

You could also enter the date in some other cell, and refer to that cell.

Second, if you want to find the date that is two years after a date in A1, you
are probably aware that a year may have either 365 or 366 days in it.

What is 2 years after February 1, 2004? Your formula gives January 30, 2006
where you probably want Jan 31, 2006.

One way of doing that would be to use the EDATE function:

=EDATE(A1,24)

If this function is not available, and returns the #NAME? error, install and
load the Analysis ToolPak add-in.

How?

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.


Finally, depending on how precise you want to be, you may need to be taking
into account the half-year, mid-quarter or mid-month conventions.


--ron
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
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
How do I put a date range in the criteria of a countif formula? hlpmelrn Excel Discussion (Misc queries) 3 November 23rd 06 03:12 AM
how to use lookup a value by date for criteria in Excel sheet dom Excel Worksheet Functions 5 January 11th 05 04:22 AM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM
Formula to determine a future date based on criteria David Excel Worksheet Functions 2 December 15th 04 07:51 PM


All times are GMT +1. The time now is 12:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"