| View previous topic :: View next topic |
| Author |
Message |
Lennart General User

Joined: 18 Aug 2005 Posts: 27 Location: Woerden, NL
|
Posted: Mon Dec 29, 2008 1:47 pm Post subject: [Formula-howto] modifying a cell depending on a date |
|
|
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 |
|
 |
Lennart General User

Joined: 18 Aug 2005 Posts: 27 Location: Woerden, NL
|
Posted: Mon Dec 29, 2008 2:03 pm Post subject: |
|
|
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 |
|
 |
RickRandom Super User

Joined: 27 Jan 2006 Posts: 1082 Location: UK
|
Posted: Mon Dec 29, 2008 11:10 pm Post subject: |
|
|
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 |
|
 |
Lennart General User

Joined: 18 Aug 2005 Posts: 27 Location: Woerden, NL
|
Posted: Tue Dec 30, 2008 1:28 am Post subject: |
|
|
| Is a style sheet included in a template? Otherwise i can't put the template on the net. |
|
| Back to top |
|
 |
RickRandom Super User

Joined: 27 Jan 2006 Posts: 1082 Location: UK
|
Posted: Tue Dec 30, 2008 9:57 am Post subject: |
|
|
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 |
|
 |
|