Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sally from Chatham
 
Posts: n/a
Default auto-calculations using calendar and dates (Excel-Office 2000)

I want to have excel calculate the last 2 columns but need help with the
formulas. My spreadsheet should show a summary of part numbers. Each part
has a service life which begins on the date of installation. I am hoping
that excel can calculate "Date to be removed" and "days to go" automatically
with insertion of a proper formula.
service life date installed date to be removed
days to go
12 months 10/26/2004 10/26/2005
280

I would appreciate help with the formula for the last two columns?
  #2   Report Post  
Dan Knight
 
Posts: n/a
Default

Sally;
Assuming the following:
Service Life is always entered as a number of months
Col A is Service Life
Col B is DateInstalled
Col C is Date2BRemoved
Col D is Days2Go
Use the following formula in Col C:

=A2+(B2*(365.25/12))

Use the following formula in Col D:

=YEARFRAC(D2,TODAY())*365.25

This doesn't take into account that Col A might contain text (ie: 12 months)
rather than just a numeric value. Nor does it take into account the real
possibility that Col A might also be stated as a value of days or years (ie:
300 days, or 2 years). But it should give you something to work with.

Dan Knight


"Sally from Chatham" wrote:

I want to have excel calculate the last 2 columns but need help with the
formulas. My spreadsheet should show a summary of part numbers. Each part
has a service life which begins on the date of installation. I am hoping
that excel can calculate "Date to be removed" and "days to go" automatically
with insertion of a proper formula.
service life date installed date to be removed
days to go
12 months 10/26/2004 10/26/2005
280

I would appreciate help with the formula for the last two columns?

  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

If, as you say, service life is entered in column A as number of months,
perhaps a better formula for the date-to-be-removed, in column C, is

=DATE(YEAR(B2),MONTH(B2)+A2,DAY(B2))

and the number of days remaining between the current date and the date to be
removed in column C is =C2-TODAY(). If the latter is wanted in Months and
days, you can use

=DATEDIF(TODAY(),C2,"m")&" months, "&DATEDIF(TODAY(),C2,"ym")&" days"


On Thu, 17 Feb 2005 15:47:02 -0800, "Dan Knight"
wrote:

Sally;
Assuming the following:
Service Life is always entered as a number of months
Col A is Service Life
Col B is DateInstalled
Col C is Date2BRemoved
Col D is Days2Go
Use the following formula in Col C:

=A2+(B2*(365.25/12))

Use the following formula in Col D:

=YEARFRAC(D2,TODAY())*365.25

This doesn't take into account that Col A might contain text (ie: 12 months)
rather than just a numeric value. Nor does it take into account the real
possibility that Col A might also be stated as a value of days or years (ie:
300 days, or 2 years). But it should give you something to work with.

Dan Knight


"Sally from Chatham" wrote:

I want to have excel calculate the last 2 columns but need help with the
formulas. My spreadsheet should show a summary of part numbers. Each part
has a service life which begins on the date of installation. I am hoping
that excel can calculate "Date to be removed" and "days to go"

automatically
with insertion of a proper formula.
service life date installed date to be removed
days to go
12 months 10/26/2004 10/26/2005
280

I would appreciate help with the formula for the last two columns?


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
Display dates from an Excel spreadsheet in a calendar? kescheu Excel Worksheet Functions 0 February 15th 05 08:45 PM
Outlook 2003 calendar events into Excel 2003? Kolin Tregaskes Excel Discussion (Misc queries) 4 January 31st 05 07:30 AM
Ploting dates against a calendar and not as a simple events Barb Reinhardt Charts and Charting in Excel 2 January 22nd 05 02:41 AM
have dates entered from a list of data into an excel template Diane Excel Discussion (Misc queries) 1 December 28th 04 06:33 PM
Linking dates with a calendar... mcboots Excel Worksheet Functions 2 November 17th 04 04:11 AM


All times are GMT +1. The time now is 12:21 PM.

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"