GOOGLETRANSLATE Function
GOOGLETRANSLATE translates text in a cell from a source language to a target language.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| text | The text to translate. Can be a string literal or a cell reference. | Required |
| source_language | The two-letter language code of the original text, e.g. 'en' for English. If omitted, Google auto-detects the language. | Optional |
| target_language | The two-letter language code to translate into, e.g. 'es' for Spanish. Default is the sheet's locale language. | Optional |
Basic Example
Translate 'Hello' from English to Spanish
=GOOGLETRANSLATE('Hello', 'en', 'es')The text 'Hello' is translated from English ('en') to Spanish ('es').
Advanced Examples
Example 1: Translate a whole column
LocalizationTranslate customer feedback from French to English for all rows
=ARRAYFORMULA(GOOGLETRANSLATE(A2:A100, 'fr', 'en'))Example 2: Auto-detect source language
Mixed-language dataTranslate text without knowing the source language
=GOOGLETRANSLATE(A2, 'auto', 'en')How GOOGLETRANSLATE Works
GOOGLETRANSLATE sends the provided text to Google Translate and returns the translated result. It supports two-letter language codes (ISO 639-1). If the source language is omitted, it is auto-detected. If the target language is omitted, the sheet's default language is used.
Important Notes & Limitations
GOOGLETRANSLATE is Google Sheets only and has no native Excel equivalent.
It requires an internet connection to call Google Translate.
Translation quality may vary for technical or idiomatic text.
Heavy use may be rate-limited by Google.
Common Errors & Fixes
#VALUE! errorLanguage code is not recognized or is not two letters.Fix: Use valid ISO 639-1 codes such as 'en', 'es', 'fr', 'de', 'zh'.
No translation returnedThe text is empty or the source and target languages are the same.Fix: Check that the cell contains text and the languages are different.
Loading...The formula is waiting for the Google Translate service to respond.Fix: Wait a moment; if it persists, check your internet connection.
Download Practice File
GOOGLETRANSLATE
googletranslatePractice GOOGLETRANSLATE with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the GOOGLETRANSLATE function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps