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

[Formula-howto] modifying a cell depending on a date

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


Joined: 18 Aug 2005
Posts: 27
Location: Woerden, NL

PostPosted: Mon Dec 29, 2008 1:47 pm    Post subject: [Formula-howto] modifying a cell depending on a date Reply with quote

Hi all,

After studying the help, using Google and trying several examples etc i still need some help ...

I'm making a simple (template) month planner. 2 rows with each 16 rows (32 days). The dates are filled automatically Now the goal is to automatically blend out the days that are not belonging to the actual month.

Lets say A1 has the month-number 02 (February). The last 4 days should be blended out, because February has normally 28 days. The last 4 entry's (lets say E29...E32) are from March (month 03). How can get adjust this cells?

Is it possible to alter the color or to remove the tekst? And how?
Is it possible to alter the height of the cell? And how?
Back to top
View user's profile Send private message Visit poster's website
Lennart
General User
General User


Joined: 18 Aug 2005
Posts: 27
Location: Woerden, NL

PostPosted: Mon Dec 29, 2008 2:03 pm    Post subject: Reply with quote

A ... at least ... some progress ... This is working

=IF((TEXT(E32;"mm"))>(TEXT(A1;"mm"));"this-is-true")

gives a nice 'this is true' (cell E32 is always a new month).

Now i've to find out how i can alter the cell
Back to top
View user's profile Send private message Visit poster's website
RickRandom
Super User
Super User


Joined: 27 Jan 2006
Posts: 1082
Location: UK

PostPosted: Mon Dec 29, 2008 11:10 pm    Post subject: Reply with quote

You can use Conditional Formatting.

First create a Style of the format you want.

Then select all the cells for the month, from the menus, Format, Conditional Formatting, set the condition and call the Style.
Back to top
View user's profile Send private message
Lennart
General User
General User


Joined: 18 Aug 2005
Posts: 27
Location: Woerden, NL

PostPosted: Tue Dec 30, 2008 1:28 am    Post subject: Reply with quote

Is a style sheet included in a template? Otherwise i can't put the template on the net.
Back to top
View user's profile Send private message Visit poster's website
RickRandom
Super User
Super User


Joined: 27 Jan 2006
Posts: 1082
Location: UK

PostPosted: Tue Dec 30, 2008 9:57 am    Post subject: Reply with quote

Sorry, I've never used templates.

I'd also suggest that you search the internet for other month planners spreadsheets as there are probably plenty already done and free to download. It might save you a lot of trouble.
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