getFormat

returns the number format applied to the value of a cell

string getFormat(string cell);

Parameters

cellstringthe id of a cell

Returns

stringthe format applied to the value of a cell

Example

var format = spreadsheet.getFormat("A1"); 
// ->"currency"

Related samples

See also
Back to top