Difference between revisions of "Documentation/How Tos/Calc: SHEETS function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:SHEETS function}}
 +
{{Documentation/CalcFunc SpreadsheetTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_SHEET_function
 +
|NextPage=Documentation/How_Tos/Calc:_DDE_function
 +
}}__NOTOC__
  
 
== SHEETS ==
 
== SHEETS ==
Line 21: Line 26:
 
: returns <tt>'''1'''</tt>; <tt>'''D8'''</tt> is interpreted as a one cell range, on a single sheet (the current sheet).
 
: returns <tt>'''1'''</tt>; <tt>'''D8'''</tt> is interpreted as a one cell range, on a single sheet (the current sheet).
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ROWS function|ROWS]]
 
* [[Documentation/How_Tos/Calc: ROWS function|ROWS]]
 
* [[Documentation/How_Tos/Calc: COLUMNS function|COLUMNS]]
 
* [[Documentation/How_Tos/Calc: COLUMNS function|COLUMNS]]
Line 31: Line 36:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
[[Category: Documentation]]
+
[[Category: Documentation/Reference/Calc/Spreadsheet functions]]

Latest revision as of 12:13, 2 February 2024



SHEETS

Returns the number of sheets in a given reference.

Syntax:

SHEETS(reference)

reference may be given either explicitly (Sheet1.A1:Sheet3.G12) or by name (myref).
If the named reference contains multiple ranges, the sum of the sheets in each range is returned, irrespective of any duplication.

Example:

SHEETS(Sheet1.A1:Sheet3.G12)

returns 3, if Sheet3 follows Sheet2 which follows Sheet1; there are thus three sheets in this range.

SHEETS(G4:H6)

returns 1; G4:H6 is interpreted as a range on a single sheet (the current sheet).

SHEETS(D8)

returns 1; D8 is interpreted as a one cell range, on a single sheet (the current sheet).



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_SHEETS_function&oldid=259997"
Views
Personal tools
Navigation
Tools