TRANSLATE function
Translates text from one language to another using Microsoft's online translation service, e.g. English to Spanish.
Available in Microsoft 365 only (Windows, Mac and web; needs an internet connection)
Microsoft 365 onlyNot in Google Sheets
Syntax
TRANSLATE(text, [source_language], [target_language])| Argument | What it means | |
|---|---|---|
text | Required | The text or cell to translate. |
source_language | Optional | Language code of the original, e.g. "en". Omit it to let Excel detect the language. |
target_language | Optional | Language code to translate into, e.g. "es", "fr", "de". If omitted, your Office language is used. |
Returns: The translated text.
How TRANSLATE works
TRANSLATE brings machine translation into a formula. Point it at a cell, give the language codes, and Excel returns the translation from Microsoft's translation service - useful for product lists, customer feedback, multilingual price lists or quick checks of foreign-language data, without copying text to a website.
Languages are given as short codes such as en (English), es (Spanish), fr (French), de (German), it (Italian), pt (Portuguese), el (Greek), ja (Japanese) or zh-Hans (Simplified Chinese). If you leave out the source language it is detected automatically, the same way DETECTLANGUAGE does. Because the work is done online, the formula needs an internet connection and is subject to usage limits.
Machine translation is good for understanding and drafts but not a replacement for a professional translator. Results can differ slightly over time as the service improves, so copy and Paste Values once you have a translation you are happy with.
Examples
1Translate a product label into Spanish
| A | B | |
|---|---|---|
| 1 | Label (English) | |
| 2 | Invoice | Factura |
Result: Factura
The source and target languages are given explicitly. Short business terms like this translate reliably; longer sentences may vary in wording.
2Let Excel detect the source language
| A | B | |
|---|---|---|
| 1 | Customer comment | |
| 2 | Merci | Thank you |
Result: Thank you
The source language is left empty, so the service recognises French and translates to English.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | An unsupported language code was given, or the text is empty. | Check the code (e.g. es, not spanish). |
#CONNECT! | Excel could not reach the translation service. | Check your internet connection and try again later. |
#NAME? | Your Excel version does not include TRANSLATE yet. | Update Microsoft 365. |
Tips
- Store the language codes in cells (e.g. B1 =
de) and refer to them, so the same formula can produce several languages across a row. - Avoid translating thousands of rows at once; there is a usage limit on the service.
- Do not send confidential text through TRANSLATE if your company policy forbids online services.
Google Sheets
Use GOOGLETRANSLATE(text, source_language, target_language).
TRANSLATE in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Dutch | VERTALEN |
| Finnish | KÄÄNNÄ |
| Hungarian | FORDÍTÁS |
| Italian | TRADUCI |
| Norwegian (Bokmål) | OVERSETT |
| Portuguese (Portugal) | TRADUZIR |
| Spanish | TRADUCIR |
| Swedish | ÖVERSÄTT |