|
|
Line 1: |
Line 1: |
− | {{Documentation/MasterTOC | + | {{DISPLAYTITLE:STYLE function}} |
− | |bookid=1234'''
| + | {{Documentation/CalcFunc SpreadsheetTOC |
− | |booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
| + | |ShowPrevNext=block |
− | |ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Spreadsheet_functions|<div style="font-size: 140%;">Spreadsheet Functions]]
| + | |PrevPage=Documentation/How_Tos/Calc:_HYPERLINK_function |
− | |ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_Statistical_functions | + | |NextPage=Documentation/How_Tos/Calc:_Statistical_functions |
− | |ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_HYPERLINK_function
| + | }}__NOTOC__ |
− | |ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Number_Conversion_functions | + | |
− | |ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Statistical_functions
| + | |
− | |toccontent= <div style="padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;">FUNCTIONS</div>
| + | |
− | | + | |
− | <div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Spreadsheet Lookup functions</div>
| + | |
− | * [[Documentation/How_Tos/Calc:_ADDRESS_function|<div style="font-size: 120%;">Address]]
| + | |
− | * [[Documentation/How_Tos/Calc:_CHOOSE_function|<div style="font-size: 120%;">Choose]]
| + | |
− | * [[Documentation/How_Tos/Calc:_HLOOKUP_function|<div style="font-size: 120%;">Hlookup]]
| + | |
− | * [[Documentation/How_Tos/Calc:_INDEX_function|<div style="font-size: 120%;">Index]]
| + | |
− | * [[Documentation/How_Tos/Calc:_INDIRECT_function|<div style="font-size: 120%;">Indirect]]
| + | |
− | * [[Documentation/How_Tos/Calc:_LOOKUP_function|<div style="font-size: 120%;">Lookup]]
| + | |
− | * [[Documentation/How_Tos/Calc:_MATCH_function|<div style="font-size: 120%;">Math]]
| + | |
− | * [[Documentation/How_Tos/Calc:_OFFSET_function|<div style="font-size: 120%;">Offset]]
| + | |
− | * [[Documentation/How_Tos/Calc:_VLOOKUP_function|<div style="font-size: 120%;">Vlookup]]
| + | |
− | | + | |
− | <div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Spreadsheet Information functions</div>
| + | |
− | * [[Documentation/How_Tos/Calc:_AREAS_function|<div style="font-size: 120%;">Areas]]
| + | |
− | * [[Documentation/How_Tos/Calc:_COLUMN_function|<div style="font-size: 120%;">Column]]
| + | |
− | * [[Documentation/How_Tos/Calc:_COLUMNS_function|<div style="font-size: 120%;">Columns]]
| + | |
− | * [[Documentation/How_Tos/Calc:_ERRORTYPE_function|<div style="font-size: 120%;">Errortype]]
| + | |
− | * [[Documentation/How_Tos/Calc:_INFO_function|<div style="font-size: 120%;">Info]]
| + | |
− | * [[Documentation/How_Tos/Calc:_ROW_function|<div style="font-size: 120%;">Row]]
| + | |
− | * [[Documentation/How_Tos/Calc:_ROWS_function|<div style="font-size: 120%;">Rows]]
| + | |
− | * [[Documentation/How_Tos/Calc:_SHEET_function|<div style="font-size: 120%;">Sheet]]
| + | |
− | * [[Documentation/How_Tos/Calc:_SHEETS_function|<div style="font-size: 120%;">Sheets]]
| + | |
− | | + | |
− | <div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Other functions</div>
| + | |
− | * [[Documentation/How_Tos/Calc:_DDE_function|<div style="font-size: 120%;">Dde]]
| + | |
− | * [[Documentation/How_Tos/Calc:_HYPERLINK_function|<div style="font-size: 120%;">Hyperlink]]
| + | |
− | * [[Documentation/How_Tos/Calc:_STYLE_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Style]]
| + | |
− | }}__TOC__ | + | |
| | | |
| == STYLE == | | == STYLE == |
− | Applies a style (for example a colour) to a cell. | + | Applies a style (for example, a color) to a cell. |
| | | |
| === Syntax: === | | === Syntax: === |
Line 53: |
Line 22: |
| : <tt>'''STYLE'''</tt> returns the numeric value <tt>'''0'''</tt>, so it may be added on to an existing calculation in the cell without changing the result. See the examples below. | | : <tt>'''STYLE'''</tt> returns the numeric value <tt>'''0'''</tt>, so it may be added on to an existing calculation in the cell without changing the result. See the examples below. |
| | | |
− | : Another way to apply styles can be found at '''Format - Conditional Formating...'''. | + | : Another way to apply styles can be found at {{menu|Format|Conditional Formating…}}. |
| | | |
| : There is no direct way to determine (in a formula) what formatting has been applied to a cell. | | : There is no direct way to determine (in a formula) what formatting has been applied to a cell. |
Line 77: |
Line 46: |
| | | |
| <tt>'''=IF(STYLE("Red"); ""; <i>yourformula</i>)'''</tt> | | <tt>'''=IF(STYLE("Red"); ""; <i>yourformula</i>)'''</tt> |
− | : where <tt>'''<i>yourformula</i>'''</tt> stands for some formula, displays the result of <tt>'''<i>yourformula</i>'''</tt> with a red background. This method might be useful if you cannot predict whether <tt>'''<i>yourformula</i>'''</tt> will return text or a number (for example with <tt>'''HLOOKUP'''</tt>). | + | : where <tt>'''<i>yourformula</i>'''</tt> stands for some formula, displays the result of <tt>'''<i>yourformula</i>'''</tt> with a red background. This method might be useful if you cannot predict whether <tt>'''<i>yourformula</i>'''</tt> will return text or a number (for example, with <tt>'''HLOOKUP'''</tt>). |
| | | |
| === Issues: === | | === Issues: === |