#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Date formula

I need a formula that will determine if dates ( formatted xx/xx/xx)in column
B & C are = or greater than 1 year apart and if so to return value "Yes", if
not return value "No".

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Date formula

=IF(C1-B1=365,"Yes","No"

"hmsawyer" wrote:

I need a formula that will determine if dates ( formatted xx/xx/xx)in column
B & C are = or greater than 1 year apart and if so to return value "Yes", if
not return value "No".

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Date formula

If B1 contains the starting date and C1 contains the ending date then :

=IF(DATEDIF(B1,C1,"y")=1,"Yes","No")

Dates are simply numbers. Excel's date range is Jan. 1, 1900 is day 1 and
Dec. 31, 9999 is day 2,958,465.
If you format those numbers as dates you'll see dates, but they are just
numbers. Formatting does not change cell values.
The DATEDIF function takes leap years into account.
The function is documented in many books on Excel and at
http://www.cpearson.com/excel/datedif.aspx

Tyro


"hmsawyer" wrote in message
...
I need a formula that will determine if dates ( formatted xx/xx/xx)in
column
B & C are = or greater than 1 year apart and if so to return value "Yes",
if
not return value "No".

Thank you!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date formula

What about Leap Years?

Rick


"Mike" wrote in message
...
=IF(C1-B1=365,"Yes","No"

"hmsawyer" wrote:

I need a formula that will determine if dates ( formatted xx/xx/xx)in
column
B & C are = or greater than 1 year apart and if so to return value "Yes",
if
not return value "No".

Thank you!


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
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
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
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 08:43 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"