DETECTLANGUAGE Function in Excel: Which Language Is This?

⏱ 1 min readUpdated 28 September 2026

TextLevel: IntermediateAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

DETECTLANGUAGE returns the language code of a text — useful for sorting customer feedback before translating it.

Syntax

=DETECTLANGUAGE(text)
Argument What it means
text Any text.

Examples

Example 1

=DETECTLANGUAGE(C2)

Returns codes like “hi”, “ta” or “en” for each review.

TRANSLATE

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong