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

Reference to a cells background/fill color?

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


Joined: 05 Sep 2007
Posts: 6

PostPosted: Wed Sep 05, 2007 12:30 pm    Post subject: Reference to a cells background/fill color? Reply with quote

How can I compare the background colors of two cells?

e.g. =IF(back_color(A1)=back_color(A2);YES;NO)
e.g. =backcolour(A1;A2)

When cell A1 and A2 are both red, cell B2 reads "YES" or "TRUE".
However, if cell A1 is red but A2 is blue, cell B2 reads "NO" or "FALSE".
Back to top
View user's profile Send private message
acknak
Moderator
Moderator


Joined: 13 Aug 2004
Posts: 4295
Location: ~ 40°N,75°W

PostPosted: Wed Sep 05, 2007 1:38 pm    Post subject: Reply with quote

As far as I know, it can't be done.

Calc is designed for the formatting (i.e. color) to be determined by the data in the cell, not the other way around. In other words, change the data in the cell, then use the distinct values to set the color, e.g. by conditional formatting.
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Wed Sep 05, 2007 6:39 pm    Post subject: Re: Reference to a cells background/fill color? Reply with quote

You can determine if a cell has a colour, but not which one [a CELL-function attribute.] 'Twould be nice though.

David.
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