Text function

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])
ArgumentWhat it means
textRequiredThe text or cell to translate.
source_languageOptionalLanguage code of the original, e.g. "en". Omit it to let Excel detect the language.
target_languageOptionalLanguage 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

B2fx=TRANSLATE(A2,"en","es")
AB
1Label (English)
2InvoiceFactura

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

B2fx=TRANSLATE(A2,,"en")
AB
1Customer comment
2MerciThank you

Result: Thank you

The source language is left empty, so the service recognises French and translates to English.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DutchVERTALEN
FinnishKÄÄNNÄ
HungarianFORDÍTÁS
ItalianTRADUCI
Norwegian (Bokmål)OVERSETT
Portuguese (Portugal)TRADUZIR
SpanishTRADUCIR
SwedishÖVERSÄTT