LiveFlow raises $13.5 million Series A led by New York-based Valar Ventures and launches LiveFlow Next to revolutionize finance!
Read More
Arrow
Back to guides
Google Sheets Formulas

DETECTLANGUAGE Function in Google Sheets: Explained

In this article, you will learn how to use the DETECTLANGUAGE formula in Google Sheets.

What does the DETECTLANGUAGE formula do in Google Sheets?

The DETECTLANGUAGE function in Google Sheets detects the language of a given text string. It returns the language code for the detected language. For example, if you use the formula =DETECTLANGUAGE("Bonjour"), it will return fr, indicating that the text is written in French.

The DETECTLANGUAGE formula is helpful for cases where you have a spreadsheet with text in multiple languages and want to identify each cell's language. You can then use this information to perform language-specific operations on the text, such as using a translation formula to translate the text into another language.

Keep in mind that the DETECTLANGUAGE formula is not always accurate, and it may not be able to detect the language of some text strings. It is also important to note that the formula is only available in Google Sheets and not in other spreadsheet programs such as Microsoft Excel.

Why spend hours creating spreadsheets, when we have already done the work for you?
100+ financial spreadsheet templates, all free and ready for you now.
Free Spreadsheet Templates

How to use the DETECTLANGUAGE function in Google Sheets?

Here is the syntax for the DETECTLANGUAGE formula:

=DETECTLANGUAGE(text_or_range)

Text_or_range: The text for which you want to detect the language. This can be a cell reference or a string value manually input. Don’t forget to enclose the manual text input with quotation marks.

Note: If the selected range includes multiple languages, the first text found will be evaluated, and the formula returns the language code for the first text string.

For example, if you use the formula below,

=DETECTLANGUAGE("Bonjour")

it will return “fr”, indicating that the text is written in French.

Here are examples of how the DETECTLANGUAGE formula works with a cell reference input in Google Sheets. Note that, as touched upon in the section above, the DETECTLANGUAGE function is not perfect. As you can see in the picture, the function considers “hola” a language different from Spanish.

How the DETECTLANGUAGE function works in Google Sheets

You can use the detected language code to translate the text to another language using the GOOGLETRANSLATE function in Google Sheets. Check the article below if you want to learn how to use the GOOGLETRANSLATE formula in Google Sheets.

GOOGLETRANSLATE Function in Google Sheets: Explained

The world's top businesses trust LiveFlow to automate their financial reporting
We turn Quickbooks Online data into a live FP&A dashboard in Sheets FAST!
Book a Demo

Learn how to do this step-by-step in the video below 👇

Automate financial reporting with LiveFlow

Cta Photo

Want to eliminate manual updates of your Excel & Google Sheets models?

Yes, show me how!

Get personal help

We guarantee you personal help on chat or Zoom within maximum 6 hours between 9am and 10pm EST.
Blue Tick
Email us at: help@liveflow.io

Liked this article? Then you'll love the ones below

Supercharge your financial reporting today

See LiveFlow in action and discover how to streamline your workflows.

Book a demo