Functions: Difference between revisions

From Wiki for The Only Sheet
Jump to navigation Jump to search
(Created page with "Ordinal(n): Given an integer, returns a string with that number, and the ordinal of that number. *Parameter: n As Integer *Example: =Ordinal(3) *Returns: 3rd =ExtractElement(str...")
 
No edit summary
Line 1: Line 1:
Ordinal(n): Given an integer, returns a string with that number, and the ordinal of that number.
==ExtractElement(str,n,sep)==
*Parameter: n As Integer
Returns the nth element from a string, using a specified separator character
*Example: =Ordinal(3)
*'''Parameter''': str as String, n As Integer, sep as String
*Returns: 3rd
*'''Example''': =ExtractElement("Monkey&Apes&Chimps",2,"&")
*'''Returns''': Apes


=ExtractElement(str,n,sep)
==Ordinal(n)==
*Parameter: str as String, n As Integer, sep as String
Given an integer, returns a string with that number, and the ordinal of that number.
*Example: =ExtractElement("Monkey&Apes&Chimps",2,"&")
*'''Parameter''': n As Integer
*Returns: Apes
*'''Example''': =Ordinal(3)
*'''Returns''': 3rd

Revision as of 22:07, 11 July 2012

ExtractElement(str,n,sep)

Returns the nth element from a string, using a specified separator character

  • Parameter: str as String, n As Integer, sep as String
  • Example: =ExtractElement("Monkey&Apes&Chimps",2,"&")
  • Returns: Apes

Ordinal(n)

Given an integer, returns a string with that number, and the ordinal of that number.

  • Parameter: n As Integer
  • Example: =Ordinal(3)
  • Returns: 3rd