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

Ive searched and searched! if statement/cell color SOLVED

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


Joined: 31 May 2007
Posts: 3

PostPosted: Thu May 31, 2007 11:24 am    Post subject: Ive searched and searched! if statement/cell color SOLVED Reply with quote

Hello all!

I know im brand new so i took the time to search the forums to try and find my answer but i couldnt find anything. i hope some kind soul will take pitty on a newby and help me out.

I am trying to write an if statement to show one of two colors in a
cell. For example, if a certain value is less than X, the cell
will turn this color, otherwise the cell turns a different color. I am
trying to figure out the "then_value" and "otherwise_value" that I would
use to do something like this. Any tip would be extremely appreciated.

Thank you so much


Last edited by TrevorEB on Thu May 31, 2007 12:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
squenson
Super User
Super User


Joined: 09 Mar 2007
Posts: 690
Location: Nis, Serbia

PostPosted: Thu May 31, 2007 11:49 am    Post subject: Reply with quote

TrevorEB,

Two possibilities:

1) Use conditional formatting. First create two new styles with the proper colors. Then apply conditional formatting on your cells.

2) Use the function STYLE. Again, create two styles, and in your if clauses, add the STYLE function. One example: =IF(A1=1;A1+STYLE("Green");A1+STYLE("Red"))
_________________
Help us to help you: Add [Solved] to the title of the thread if you agree with the answer
>>> Do you know the new OOo support forum http://user.services.openoffice.org/en/forum/index.php? <<<
Back to top
View user's profile Send private message
TrevorEB
Newbie
Newbie


Joined: 31 May 2007
Posts: 3

PostPosted: Thu May 31, 2007 12:17 pm    Post subject: Reply with quote

thanks so much for your help. nice people like you make forums so worth while.
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