ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-24-2007, 10:55 AM
kwright90 kwright90 is offline
Registered User
 
Join Date: 24 Apr 2007
Posts: 39
kwright90 is on a distinguished road
DATEDIF Formula

I am working on a pproject that I need a formula to count down contract dates. I have a column with the contract sign date and a cell (located at A1) will the current date. I need to be able to count down the remaining time left on each particular contract. Could someone share some info on a formula for this task please?
Reply With Quote
  #2  
Old 04-24-2007, 11:09 AM
NBVC's Avatar
NBVC NBVC is online now
Forum Moderator
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
Posts: 7,656
NBVC will become famous soon enough NBVC will become famous soon enough
Try

=DATEDIF($A$1,B2,"d")

where A1 house formula =TODAY()

B2 house 1st contract date...

copy formula down.

Note, you can replace A1 in the formula with Today().
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge!

Please read the Forum Rules: Rules
Reply With Quote
  #3  
Old 04-24-2007, 04:09 PM
kwright90 kwright90 is offline
Registered User
 
Join Date: 24 Apr 2007
Posts: 39
kwright90 is on a distinguished road
Thanks alot for the info.

I believe I need to calculate in the contract length somewhere in this formula somehow. I do have a column that states the length. Most range from 3-5 years.


It is giving me an error #NUM! in the formula cell (=DATEDIF,TODAY(),B2,"d"). I assume this is because it needs a contract length in order to determin the time remaining.
Reply With Quote
  #4  
Old 04-24-2007, 04:13 PM
NBVC's Avatar
NBVC NBVC is online now
Forum Moderator
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
Posts: 7,656
NBVC will become famous soon enough NBVC will become famous soon enough
Quote:
Originally Posted by kwright90
Thanks alot for the info.

I believe I need to calculate in the contract length somewhere in this formula somehow. I do have a column that states the length. Most range from 3-5 years.


It is giving me an error #NUM! in the formula cell (=DATEDIF,TODAY(),B2,"d"). I assume this is because it needs a contract length in order to determin the time remaining.
It should be =DATEDIF(TODAY(),B2,"d") where B2 is a date greater than or equal to today's date (i.e. in the future).
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge!

Please read the Forum Rules: Rules
Reply With Quote
  #5  
Old 04-24-2007, 04:34 PM
kwright90 kwright90 is offline
Registered User
 
Join Date: 24 Apr 2007
Posts: 39
kwright90 is on a distinguished road
Ok... Thanks alot!!

B2 being the "Contract END Date"....

Got it!!
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 01:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0