OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to add 6 months to a date?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
marcelkoopman
General User
General User


Joined: 04 Nov 2003
Posts: 7

PostPosted: Fri Apr 29, 2005 11:15 pm    Post subject: How to add 6 months to a date? Reply with quote

I want to add 6 months to a certain date, so what is the date 6 months after this date...

How do i do this?
Back to top
View user's profile Send private message
carl
Super User
Super User


Joined: 21 Apr 2003
Posts: 920
Location: Germany

PostPosted: Sat Apr 30, 2005 12:15 am    Post subject: Reply with quote

a1 is your first date
b1 =EOMONTH(A1;5)+day(a1)
_________________
carl
Using OpenOffice.org 2 on XP sp2
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


Joined: 29 May 2004
Posts: 2499
Location: 3rd Rock From The Sun

PostPosted: Sat Apr 30, 2005 8:29 am    Post subject: Reply with quote

marcelkoopman:

I would suggest you use the Calc function . . . EDATE (read about it in the Help file).

For example . . .

A1 is your first date
B1 =EDATE(A1; 6)

If A1 is 4/15/2005 ( in MM/DD/YYYY format ) . . . then . . . B1 would return 10/15/2005 (if formated as a date).

If A1 is 5/31/2005 . . . then . . . B1 would return 11/30/2005.

If A1 is 11/30/2005 . . . then . . . B1 would return 5/30/2006.

I hope this helps . . . please be sure to let us / me know.

SlideRule
Back to top
View user's profile Send private message
carl
Super User
Super User


Joined: 21 Apr 2003
Posts: 920
Location: Germany

PostPosted: Sun May 01, 2005 1:00 am    Post subject: Reply with quote

something new every day! Thanks
_________________
carl
Using OpenOffice.org 2 on XP sp2
Back to top
View user's profile Send private message
marcelkoopman
General User
General User


Joined: 04 Nov 2003
Posts: 7

PostPosted: Sun May 01, 2005 2:41 am    Post subject: Reply with quote

Thank you! Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group