Skip to content
ExcelExcel Microsoft 365+

DETECTLANGUAGE function in Excel

Identifies the language of a specified text

=DETECTLANGUAGE(text)

DETECTLANGUAGE syntax and parameters

One argument, one required.

  • textstringRequired

DETECTLANGUAGE examples

Formulas you'll actually reuse.

  1. The language code of a customer review:

    =DETECTLANGUAGE(A2)

    Result"de"

  2. Route non-English comments to a translation queue:

    =IF(DETECTLANGUAGE(A2) = "en", A2, "Needs translation")

DETECTLANGUAGE in Google Sheets

Same name — your formula ports as-is.

Try DETECTLANGUAGE in the playground

Edit the example — nothing to install.

Preloaded with the DETECTLANGUAGE formula from Example 1 — change anything and watch it respond.

Loading the editor…