Now I am playing around with numbers and added this formula -
Code: Select all
=IF(D2 > median($D3:$D7))Code: Select all
=IF(D2 > median($D3:$D7))Code: Select all
=STYLE(IF(D2 > median($D3:$D7);"green_cell_style";"red_cell_style")You must understand that this all is still "greek" for me until I get my hands dirty and learn everything from inside out =)Lupp wrote:Well, you can use the STYLE() function to assign a cell style to a cell containing a formula. You cannot use it to apply attributes to cells containing data.
Are you aware of the fact that the cell style assigned by STYLE() will persist changes and deletion of the formula? Removing the STYLE() part from the formula will not afflict the already applied cell style.
STYLE() works compltely different than ConditionalFormat.
Start learning from outside in. Get a good book on spreadsheets. Any Excel book of the 90ies will do. For Calc I would recommend the documentation on the websites of OpenOffice or LibreOffice respectively. Take some time. This will be your first programming language. Learn systematically about data entry, sheet navigation, types of values, function arguments, relative and absolute addressing, cell styles. Conditional formatting combines more than one concept.You must understand that this all is still "greek" for me until I get my hands dirty and learn everything from inside out =)