How to Translate Languages in Google Sheets
In this article
Google Sheets has a built-in function called GOOGLETRANSLATE that lets you translate text from one language to another directly inside your spreadsheet. It works for single cells, entire columns, or even live data pulled from other sheets. You only need a Google account and a spreadsheet with some text to translate. No add-ons or extra tools are required.
What You'll Need
- A Google account (free) to access Google Sheets.
- A spreadsheet with text you want to translate, or a blank sheet where you can type sample text.
- Internet connection – the translation is done by Google's servers, so it won't work offline.
Step-by-Step
- Open Google Sheets. Go to sheets.google.com and open the spreadsheet containing the text you want to translate, or create a new one.
- Identify the cell with the text. For example, if cell A1 contains "Hello", you'll translate that.
- Click an empty cell where you want the translated text to appear (e.g., B1).
- Type the formula. Enter
=GOOGLETRANSLATE(A1, "en", "es")– this translates the text in A1 from English ("en") to Spanish ("es"). Press Enter. - See the result. The cell now shows the translation. For A1="Hello", B1 will show "Hola".
- Translate a whole column. If you have text in A2:A100, click B2, enter the formula for A2, then drag the fill handle (small square at the bottom right of the cell) down to B100. Or double-click the fill handle to auto-fill.
- Translate without specifying source language. Use
=GOOGLETRANSLATE(A1, "auto", "fr")– Google will auto-detect the source language. This is useful when you have mixed languages. - Translate from a language code. Instead of "en", you can use "es" (Spanish), "fr" (French), "de" (German), "zh-CN" (Simplified Chinese), "ar" (Arabic), etc. For a full list, search for "Google Translate language codes" – common ones are listed in the Tips section below.
- Use cell references for language codes. You can put the language code in a cell (e.g., D1="fr") and reference it:
=GOOGLETRANSLATE(A1, "auto", D1). This makes it easy to change the target language without editing every formula. - Combine with other functions. For example, to translate only the first word:
=GOOGLETRANSLATE(LEFT(A1, FIND(" ", A1)-1), "en", "es"). Or to clean text first:=GOOGLETRANSLATE(TRIM(A1), "en", "es"). - Translate in a new sheet. You can create a new sheet (tab) and reference cells from the original sheet:
=GOOGLETRANSLATE(Sheet1!A1, "en", "de").
Common Mistakes
- Using the wrong language code. For example, using "EN" instead of "en" – the function is case-insensitive, but using incorrect codes like "english" will fail. Always use two-letter ISO codes (e.g., "en", "es", "fr").
- Forgetting the quotes. The formula requires language codes in double quotes:
"en"noten. If you omit quotes, Google Sheets treats it as a named range and returns an error. - Not using "auto" for mixed languages. If you specify "en" but the text is actually French, the translation will be wrong or fail. Use "auto" to let Google detect.
- Dragging the fill handle incorrectly. If you drag down but the formula references A1 instead of A2, the translation will be the same for all rows. Ensure the cell reference is relative (no $ signs) so it updates.
- Translating empty cells. If a cell is blank, the formula returns an empty string, which is fine, but if you have spaces, it might return an error. Use
=IF(A1="","",GOOGLETRANSLATE(A1,"en","es"))to skip blanks.
Tips
- Use "auto" for source language – it simplifies the formula and works for most cases.
- Common language codes: en (English), es (Spanish), fr (French), de (German), it (Italian), pt (Portuguese), ru (Russian), ja (Japanese), ko (Korean), zh-CN (Simplified Chinese), zh-TW (Traditional Chinese), ar (Arabic), hi (Hindi).
- Translate on the fly with ARRAYFORMULA. To translate a whole column without dragging, use
=ARRAYFORMULA(GOOGLETRANSLATE(A1:A10, "auto", "es"))in a single cell. This works in Google Sheets but may be slower for large ranges. - Keep original text intact. Always put translations in a separate column so you can compare or revert.
- Use conditional formatting to highlight untranslated cells. For example, format cells where the translation is empty.
- Combine with IMPORTXML or IMPORTHTML to translate live web content – but note that GOOGLETRANSLATE only works on text strings, not on entire web pages.
Troubleshooting
- #NAME? error. This means the function isn't recognized. Make sure you typed
GOOGLETRANSLATEcorrectly (all caps not needed but no spaces). It should be available in all regions – if not, try restarting your browser or check if you're on a work/school account that might have restrictions. - #VALUE! error. Often caused by an empty cell or a cell with a non-text value (like a number). Wrap the formula with
IFERROR:=IFERROR(GOOGLETRANSLATE(A1, "en", "es"), "")to avoid errors. - Translation comes back in the wrong language. Double-check your language codes. Also, if you used "auto", it might misdetect short or ambiguous text. Specify the source language if you know it.
- Formula works but returns the same text. This can happen if the source and target languages are the same, or if the text is already in the target language. Check your codes.
- Slow performance with large datasets. GOOGLETRANSLATE makes a network request per cell, so thousands of cells can be slow. Consider translating in batches or using a script (Apps Script) for bulk translation.
- Function not available in your region. In rare cases, GOOGLETRANSLATE might be disabled for some Google Workspace accounts. Contact your admin or use a personal Gmail account.
Frequently Asked Questions
Can I translate an entire column at once?
Yes, use =ARRAYFORMULA(GOOGLETRANSLATE(A1:A100, "auto", "es")) in a single cell. It will fill down automatically. However, for very large ranges, this can be slow.
Does GOOGLETRANSLATE work offline?
No, it requires an internet connection because the translation is done on Google's servers.
Can I translate from a specific language to another without specifying the source?
Yes, use "auto" as the source language code. Google will detect the language automatically.
Is there a limit to how many characters I can translate?
Google Sheets doesn't document a strict limit, but very long strings (e.g., entire paragraphs) may be truncated or return an error. It's best to translate cell by cell.
Can I use GOOGLETRANSLATE in Microsoft Excel?
No, it's a Google Sheets-specific function. In Excel, you'd need to use a different method, like the Translator add-in or a web API.
How do I translate a cell that contains a formula result?
Just reference the cell with the formula. For example, if A1 contains =CONCATENATE("Hello ", "World"), then =GOOGLETRANSLATE(A1, "en", "es") will translate the resulting text.