Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MKChick
 
Posts: n/a
Default How do I calculate dates?

I need to be able to add years onto a starting month/year date. For example,
starting with Jan 90, I would need a column that was 7 years more, then a
column that was 10 years more, etc. I've tried all the suggestions in the
"Help" menu, to no avail. Any help out there???
  #2   Report Post  
Nige
 
Posts: n/a
Default

Try using Edate - you need the Toolpak addin for this, go to Tools, Addins
and check the Analysis Toolpak checkbox.

=Edate(A1, 84)

will give you 7 years on from the date in cell A1. Edate works using months
rather than years so you'd need to multiply up.

Use =Edate(A1, 84)-1 if you want the result to be the day/month before
that of the start date.


"MKChick" wrote:

I need to be able to add years onto a starting month/year date. For example,
starting with Jan 90, I would need a column that was 7 years more, then a
column that was 10 years more, etc. I've tried all the suggestions in the
"Help" menu, to no avail. Any help out there???

  #3   Report Post  
Don Guillett
 
Posts: n/a
Default

one way

Sub addates()
For Each c In Range("e1:e" & Cells(Rows.Count, "e").End(xlUp).Row)
c.Offset(, 1) = DateSerial(Year(c) + 7, Month(c), Day(c))
c.Offset(, 2) = DateSerial(Year(c) + 10, Month(c), Day(c))
Next
End Sub


--
Don Guillett
SalesAid Software

"MKChick" wrote in message
...
I need to be able to add years onto a starting month/year date. For

example,
starting with Jan 90, I would need a column that was 7 years more, then a
column that was 10 years more, etc. I've tried all the suggestions in the
"Help" menu, to no avail. Any help out there???



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
How do you calculate number of workdays from dates entered? tfleck Excel Worksheet Functions 1 March 25th 05 09:17 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
How to calculate time between two dates? ByGolly! Setting up and Configuration of Excel 1 February 12th 05 03:42 PM
How to Calculate Dates without counting the weekends Lillian F Excel Worksheet Functions 9 January 24th 05 09:09 AM
calculate with dates before 1-1-1900 jan wan Excel Worksheet Functions 3 October 29th 04 10:54 PM


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