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

From Apache OpenOffice Wiki
Jump to: navigation, search
(→‎Syntax:: more detail)
Line 40: Line 40:
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''PROPER(text)'''</tt>
 
<tt>'''PROPER(text)'''</tt>
: returns <tt>'''text'''</tt> with the first character of each word capitalised, and other characters in lower case.
+
: returns <tt>'''text'''</tt> with the first letter of each word capitalised, and other letters in lower case. More specifically, the  first letter and any letter that follows a non-letter are capitalised.
  
 
=== Example: ===
 
=== Example: ===

Revision as of 23:05, 7 May 2014

CALC FUNCTIONS
< {{#switch:Previous Section Previous Section = Previous Section Next Section = Next Section Previous Page = Previous Page Next Page = Next Page }} {{#switch:Next Section Previous Section = Previous Section Next Section = Next Section Previous Page = Previous Page Next Page = Next Page }} >
< {{#switch:Previous Page Previous Section = Previous Section Next Section = Next Section Previous Page = Previous Page Next Page = Next Page }} {{#switch:Next Page Previous Section = Previous Section Next Section = Next Section Previous Page = Previous Page Next Page = Next Page }} >


PROPER

returns text with words in lowercase after a capitalised first letter.

Syntax:

PROPER(text)

returns text with the first letter of each word capitalised, and other letters in lower case. More specifically, the first letter and any letter that follows a non-letter are capitalised.

Example:

PROPER("gooD morNINg")

returns Good Morning.

Template:Documentation/SeeAlso

Personal tools