Text.Lower Function in Power Query M

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

The Text.Lower function converts all the letters in a text value to lowercase. It’s the Power Query version of the LOWER function in Excel.

You’d use it to clean up emails and usernames that came in with random capital letters, and to compare or filter text without worrying about case. In this article, I’ll show you how it works with practical examples.

Follow along with the example file

Text.Lower Function Examples.xlsx

Download

Text.Lower Function Syntax

Text.Lower(text as nullable text, optional culture as nullable text) as nullable text
  • text – the text value you want to convert to lowercase.
  • culture (optional) – a culture code such as “en-US” or “tr-TR” that tells Power Query which language’s lowercase rules to follow. You can usually leave it out. It matters only for a few languages, like Turkish (see Example 9).

What it returns – the same text with every uppercase letter changed to lowercase. Digits, spaces, and symbols inside the text (like the 2026 in “Summer Sale 2026”) stay as they are.

If the text is null, you get null back. If the value itself is a number or a date instead of text, you get an error, because Text.Lower only accepts text (Example 8 shows the fix).

The Text.Lower function is part of the Power Query M language, so it works wherever Power Query does in Excel: Excel 365, 2024, 2021, 2019, and 2016 for Windows, and Excel for Microsoft 365 on Mac.

When to Use the Text.Lower Function

Use this function when you need to:

  • Clean up email addresses that were typed with random capital letters
  • Turn page titles into lowercase URL slugs
  • Make usernames, codes, or other IDs follow one consistent case
  • Change all the column headers of a table to lowercase
  • Filter rows when the same word is typed as Open, OPEN, and open
  • Check whether two text values match, ignoring uppercase and lowercase

Example 1: Convert a Text Value to Lowercase

Let’s start with a simple one.

Suppose you have the text “Quarterly SALES Summary” and you want it all in lowercase.

In Excel, go to Data > Get Data > From Other Sources > Blank Query. In the Power Query Editor that opens, type this formula in the formula bar:

= Text.Lower("Quarterly SALES Summary")

Result: quarterly sales summary

Text.Lower returns quarterly sales summary from Quarterly SALES Summary

Here, Text.Lower changes every capital letter to lowercase, whether it’s the Q at the start or the whole word SALES. The spaces between the words stay exactly where they were.

If you’re coming from Excel, the LOWER function does the same thing in a cell. Power Query also has Text.Upper for all capitals and Text.Proper for capitalizing the first letter of each word.

Example 2: Convert an Email Column to Lowercase

This is the use you’ll probably need most often.

Below is a Signups table with the name and email of each newsletter subscriber, where the emails were typed with all kinds of capitalization, and I want every email in the Email column in lowercase.

Signups table with names and emails typed in mixed case

To follow along, select any cell in the Signups table and go to Data > From Table/Range. This opens the table in the Power Query Editor, where the Source step holds it.

If Power Query adds a Changed Type step too, you can delete it, because the formula below works from the Source step and doesn’t need it.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.TransformColumns(Source,{{"Email",Text.Lower,type text}})

Result: Every email in the Email column is now in lowercase, like david.mason@outlook.com and julia.wells@gmail.com.

Email column with every email in lowercase

Here, Table.TransformColumns changes the values in the Email column itself, instead of adding a new column. The last part, type text, keeps the column’s data type as text.

Notice that Text.Lower is written without brackets or arguments here. You’re handing the whole function to Table.TransformColumns, and it runs Text.Lower on every email in the column.

Email addresses aren’t case-sensitive in practice, so JULIA.WELLS@GMAIL.COM and julia.wells@gmail.com reach the same inbox. Lowercasing them makes duplicates easy to spot and lets them match emails from other tables.

Example 3: Create URL Slugs From Page Titles

Text.Lower is often one step in a bigger text change. Here, it works together with another text function.

Below is a WebPages table with the titles of pages on a website, and I want a lowercase URL slug for each page (like contact-us) in a new Slug column.

WebPages table with page titles

Load the WebPages table into Power Query the same way as in Example 2 (Data > From Table/Range). Then add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(Source,"Slug",each Text.Replace(Text.Lower([Page Title])," ","-"),type text)

Result: A new Slug column with contact-us, summer-sale-2026, return-policy, gift-cards, track-your-order, and new-arrivals.

New Slug column with lowercase titles joined by hyphens

In the above formula, Table.AddColumn adds a new column called Slug. For each row, Text.Lower first turns the page title into lowercase, so “Summer Sale 2026” becomes “summer sale 2026”.

Then the Text.Replace function replaces every space with a hyphen, which gives you “summer-sale-2026”. The number 2026 is part of the text, so Text.Lower leaves it as it is.

Example 4: Convert Multiple Columns to Lowercase

You don’t need a separate step for each column you want to change.

Below is a UserAccounts table with each employee’s username and work email, typed in mixed case, and I want both the Username and the Email columns in lowercase for a system that only accepts lowercase values.

UserAccounts table with usernames and emails in mixed case

Load the UserAccounts table into Power Query the same way as in Example 2 (Data > From Table/Range). Then add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.TransformColumns(Source,{{"Username",Text.Lower,type text},{"Email",Text.Lower,type text}})

Result: The Username column now has revans, jcarter, jwright, csullivan, and jjones, and every email is in lowercase, like rebecca.evans@corp.com.

Username and Email columns both converted to lowercase

Here, Table.TransformColumns gets a list with one set of curly brackets for each column. Each set has the column name, the function to run on it, and the data type.

The Employee column isn’t in the list, so the names keep their capital letters. You can add as many columns to the list as you need.

Example 5: Convert All Column Headers to Lowercase

Sometimes it’s the column names you want in lowercase, not the values. Some databases and tools expect lowercase field names.

Below is a Shipments table with headers in mixed case (DESTINATION CITY is all capitals), and I want every column header in lowercase.

Shipments table with column headers in mixed case

Load the Shipments table into Power Query the same way as in Example 2 (Data > From Table/Range). Then add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.TransformColumnNames(Source,Text.Lower)

Result: The headers are now shipment id, origin city, destination city, and weight kg. The data in the rows doesn’t change.

All column headers converted to lowercase

Here, the Table.TransformColumnNames function runs Text.Lower on every column name of the table. Just like in Example 2, Text.Lower is passed without brackets, so it gets applied to each header one by one.

This works no matter how many columns the table has, and it still works if a new column shows up in the data later.

Follow along with the example file

Text.Lower Function Examples.xlsx

Download

Example 6: Filter Rows Without Worrying About Case

Text in Power Query is case-sensitive. So when you filter for “open”, Power Query doesn’t treat “Open” or “OPEN” as a match.

Below is a Tickets table where the Status column was typed in different ways (Open, OPEN, open, Closed, and so on), and I want to keep only the open tickets.

Tickets table with the status typed as Open, OPEN, open, Closed and more

Load the Tickets table into Power Query the same way as in Example 2 (Data > From Table/Range). Then add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.SelectRows(Source,each Text.Lower([Status])="open")

Result: Three rows are left: T-2201 (Open), T-2203 (open), and T-2205 (OPEN).

Only the open tickets are left, whatever their case

Here, Table.SelectRows keeps the rows where the condition is true. For each row, Text.Lower turns the status into lowercase first, so Open, OPEN, and open all become “open” and pass the check.

The Status column itself doesn’t change, because Text.Lower only runs inside the check. The rows you keep still show Open, open, and OPEN as they were typed.

Make sure the text you compare against is also in lowercase. If you wrote =”Open”, no row would match, because Text.Lower never returns a capital O.

Example 7: Compare Two Columns Ignoring Case

Here’s a related problem. You want to know whether two columns hold the same value, but one of them was typed with different capitals.

Below is a Registrations table with the email each attendee registered with and the email printed on their event badge, and I want to check which emails match.

Registrations table with the registered email and the badge email

To show the difference, I’ll add two columns: one with a plain comparison and one with Text.Lower. Load the Registrations table into Power Query the same way as in Example 2 (Data > From Table/Range).

Then go to Home > Advanced Editor, replace the code with the following, and click Done:

let
Source = Excel.CurrentWorkbook(){[Name="Registrations"]}[Content],
#"Added Exact Match" = Table.AddColumn(Source,"Exact Match",each [Registered Email]=[Badge Email],type logical),
#"Added Case-Insensitive Match" = Table.AddColumn(#"Added Exact Match","Case-Insensitive Match",each Text.Lower([Registered Email])=Text.Lower([Badge Email]),type logical)
in
#"Added Case-Insensitive Match"

Result: The Exact Match column says TRUE only for Emily Allen. The Case-Insensitive Match column says TRUE for everyone except Walter Morris.

Exact Match and Case-Insensitive Match columns side by side

In the Added Exact Match step, the plain = check is case-sensitive, so harold.ross@outlook.com and Harold.Ross@outlook.com count as different. That’s why most rows show FALSE in the Exact Match column.

In the Added Case-Insensitive Match step, Text.Lower converts both emails to lowercase before comparing them, so only the spelling matters. Walter Morris still shows FALSE because “walt” and “walter” really are different emails.

If you only need the case-insensitive check, add just the Case-Insensitive Match step as a new step. Its formula then starts with Table.AddColumn(Source, instead of Table.AddColumn(#"Added Exact Match", because Source is the step right before it.

Text.Lower doesn’t remove spaces, though. If one email had an extra space at the end, the two still wouldn’t match, so wrap each side in the Text.Trim function as well when your data has stray spaces.

Example 8: Convert a Column That Has Numbers

Text.Lower only works on text. If a cell holds a number, you get an error for that row.

Below is a Bins table with the warehouse bin of each item, where some bins are codes like A-12 and some are plain numbers like 105, and I want every bin in lowercase in the Bin column.

Bins table where some bins are codes and some are numbers

Load the Bins table into Power Query the same way as in Example 2 (Data > From Table/Range). First, let’s see what happens if you use Text.Lower directly, with the same formula as in Example 2:

= Table.TransformColumns(Source,{{"Bin",Text.Lower,type text}})

Result: The codes become a-12, b-07, and c-3, but the rows with 105 and 210 show Error. The Box Cutter row, which has no bin, shows null.

Text.Lower shows Error for the bins stored as numbers

The numbers in Excel come into Power Query as numbers, not text. When Text.Lower gets 105, it fails with the message “We cannot convert the value 105 to type Text.”

So you need to turn each value into text first. Use this formula instead of the one above:

= Table.TransformColumns(Source,{{"Bin",each Text.Lower(Text.From(_)),type text}})

Result: The Bin column now has a-12, 105, b-07, null, 210, and c-3, with no errors.

With Text.From, every bin converts to lowercase text without errors

Here, the underscore (_) stands for the bin value in each row. The Text.From function turns 105 into the text “105”, and Text.Lower then has text to work with.

The Box Cutter cell is empty on purpose, and it comes into Power Query as null. Both Text.From and Text.Lower return null for it, so the blank stays blank instead of turning into an error.

You could also change the Bin column’s type to Text first (right-click the header > Change Type > Text) and then add the first formula from this example.

In that case, replace Source in the formula with the name of the new Change Type step (usually #”Changed Type”). Otherwise the formula skips the change, and the errors come back.

In the example file, both versions are there as the Example 8 – Number Error and Example 8 – Fix With Text From queries, and both read the same Bins table.

Example 9: Use the Culture Argument for Turkish Text

Most of the time, you can leave out the culture argument. But a few languages have their own lowercase rules, and Turkish is the classic example.

Turkish has two different letter i’s. The capital I without a dot becomes a dotless ı, and the capital İ with a dot becomes i.

Below is a TurkishWords table with a few Turkish words in capitals and their English meaning, and I want each word in lowercase using English rules in an en-US column and Turkish rules in a tr-TR column.

TurkishWords table with Turkish words in capitals

Load the TurkishWords table into Power Query the same way as in Example 2 (Data > From Table/Range). Then go to Home > Advanced Editor, replace the code with the following, and click Done:

let
Source = Excel.CurrentWorkbook(){[Name="TurkishWords"]}[Content],
#"Added en-US" = Table.AddColumn(Source,"en-US",each Text.Lower([Word],"en-US"),type text),
#"Added tr-TR" = Table.AddColumn(#"Added en-US","tr-TR",each Text.Lower([Word],"tr-TR"),type text)
in
#"Added tr-TR"

Result: The en-US column has kirmizi, balik, işik, and istanbul. The tr-TR column has kırmızı, balık, ışık, and istanbul.

en-US and tr-TR columns showing the different lowercase results

Here, the Added en-US step lowercases each word with English rules, and the Added tr-TR step does the same with Turkish rules.

With English rules, every I becomes a regular i, so KIRMIZI (red) turns into kirmizi, which is misspelled in Turkish. With “tr-TR”, the same word correctly becomes kırmızı.

İSTANBUL gives istanbul in both columns, because the dotted İ becomes a regular i either way.

If you work with Turkish text, pass the culture so the result is spelled correctly. The culture has to be one Power Query knows, or you get the error “The specified culture is not supported.”

Other Excel Articles You May Also Like:

All Power Query Functions

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.