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

please help me make this excel macro work in openoffice calc
Goto page Previous  1, 2
 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu May 17, 2012 11:14 am    Post subject: Reply with quote

=DATE(YEAR(A1);MONTH(A1)+3;DAY(A1))
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
karolus
OOo Advocate
OOo Advocate


Joined: 22 Jun 2011
Posts: 210

PostPosted: Thu May 17, 2012 11:15 am    Post subject: Reply with quote

Hi
Quote:
karo why doesnt the formula work for me


How could i know this, i cannot look over your shoulders - may be your Dates are Text but not DateValues ??

@Ken
In other Words, he needs the next Date after TODAY() count in Intervalls of n months since Date in Column C.

( If this Explanation is wrong, its because i'm not a native English )

Karo
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Fri May 18, 2012 6:28 am    Post subject: Reply with quote

I also could not get Karo's formula to work.
There is definitely a problem with the formula, the dates I'm using are not text. Also, the MONTH function accepts only one parameter, not three.
Try this array formula in D2...
Code:
MIN(IF(EDATE(C2;ROW($A$1:$A$400)*B2)<TODAY();"";EDATE(C2;ROW($A$1:$A$400)*B2)))

Array formulae must be entered using Ctrl+Shift+Enter.
Also, when you use the fill handle to get array formulae into adjacent cells (D3:D5) you must hold down the Ctrl key while dragging the fill handle.
See attached doc...
http://www.mediafire.com/view/?oiiyuorsg56row9

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
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
Goto page Previous  1, 2
Page 2 of 2

 
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