class SpreadsheetApp method .getDisplayValue()

SpreadsheetApp is the Apps Script service.

.getDisplayValue() is the method name you will see after a dot in your code.

What it does

Reads the formatted text shown in a cell, not the raw value.

Why it's used

  • Read what the user actually sees, like formatted currency instead of a raw number.
  • Match exported text to on-screen formatting for labels or emails.

Common errors

  • Forgetting parentheses on getDisplayValue. Write SpreadsheetApp.getDisplayValue(), not SpreadsheetApp.getDisplayValue or getDisplayValue by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').getDisplayValue().
  • Adding spaces where they do not belong. Write SpreadsheetApp.getDisplayValue(), not SpreadsheetApp .getDisplayValue(), SpreadsheetApp.getDisplayValue (), or SpreadsheetApp . getDisplayValue().
  • Wrong capitalization. Use SpreadsheetApp and getDisplayValue, not spreadsheetapp or getdisplayvalue.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about SpreadsheetApp.getDisplayValue().

Browse the blog