Excel Power Query Lowercase: Step-by-Step Guide
In this article
To convert text to lowercase in Excel Power Query, use the Text.Lower function. The quickest way is to select the column, go to the Transform tab, click Format and choose lowercase. This changes the column in place. For more control, add a custom column with the formula = Text.Lower([ColumnName]). Either method works in both Excel and Power BI, and the steps below assume you are using Excel for Microsoft 365 on Windows; labels can differ slightly by version, device or region.
What You'll Need
- Excel 2016 or later with Power Query enabled (built-in from Excel 2016 onward).
- A table or range of data loaded into Power Query. If you have not done so, select your data and use Data > From Table/Range.
- Basic familiarity with the Power Query Editor window.
Step-by-Step
- Load your data into Power Query. Select any cell in your table, then go to Data > From Table/Range. If prompted, confirm the range and click OK. The Power Query Editor opens.
- Select the column to convert. Click the column header that contains the text you want to lowercase. To convert multiple columns, hold Ctrl and click each header.
- Use the Format menu. On the Transform tab (or Add Column tab if you want to keep the original), click Format and choose lowercase. Power Query adds a step to the Applied Steps list and the values change immediately.
- Alternatively, add a custom column. Go to Add Column > Custom Column. In the formula box, enter
= Text.Lower([YourColumnName])(replaceYourColumnNamewith the exact header name, including spaces in brackets). Click OK. A new column appears with lowercase values. - Rename the new column if needed. Double-click the new column header and type a clear name, such as "Email Lowercase".
- Check for errors. If any cells show
Error, the original value may be null or not text. You can filter or replace errors later; for now, note them. - Remove the original column if you used a custom column. Right-click the original column header and choose Remove. This keeps your query clean.
- Load the result back to Excel. Go to Home > Close & Load > Close & Load To... and choose where to place the data (existing worksheet or new worksheet). Click OK.
Common Mistakes
- Using the wrong column name in a custom column. The formula is case-sensitive for the column name and must match exactly, including spaces. If the header is "First Name", use
[First Name], not[FirstName]. - Forgetting to remove the original column. If you add a custom column and load both, you may end up with duplicate data. Remove the original or rename the new one clearly.
- Applying lowercase to non-text columns. The
Text.Lowerfunction expects text. If a column contains numbers, you will get errors. Convert the column to text first or skip it. - Assuming the change is permanent in the source. Power Query transformations do not alter the original data; they only affect the query output. If you need the source changed, you must edit the source file.
- Ignoring locale and special characters. Lowercase conversion works for most Latin characters, but some languages have special casing rules. Test with your data if it contains accented or non-Latin characters.
Tips
- Use the Transform tab for a quick in-place change; use Add Column if you want to keep the original for comparison.
- You can combine lowercase with other text transformations, such as trimming spaces (
Text.Trim) or removing duplicates, in the same query. - If you frequently need lowercase, consider creating a custom function or using a template query to save time.
- Always check the Applied Steps list to see exactly what changes were made; you can delete or reorder steps there.
- When loading to Excel, use Close & Load To... to control where the output goes, rather than the default Close & Load which creates a new table.
Troubleshooting
- The lowercase option is grayed out. Make sure you have selected a column that contains text. If the column is formatted as a number or date, Power Query may not offer text transformations. Change the data type to Text first (use the icon in the column header).
- Custom column formula returns an error. Check that the column name is spelled correctly and enclosed in square brackets. Also ensure the column exists at that step; if you renamed it earlier, use the new name.
- Values do not change after applying lowercase. Look at the Applied Steps list; the step may have been added but not applied to the preview. Click the step to refresh the preview. If the step is there but values are unchanged, the column might already be lowercase.
- Errors appear in some cells. These are likely null values or non-text entries. You can filter them out or replace errors with a default value using Replace Errors from the right-click menu on the column header.
- The query is slow with large data. Lowercasing is a simple operation, but if the dataset is huge, consider filtering rows before applying transformations to improve performance.
Frequently Asked Questions
Can I convert text to lowercase without Power Query?
Yes, you can use the LOWER function in a regular Excel formula, but Power Query is better for repeatable transformations and larger datasets.
Does Power Query lowercase work in Excel for Mac?
Yes, Power Query is available in Excel for Mac (starting with Excel 2016), and the steps are similar. Menu labels may differ slightly.
Can I convert only part of a column to lowercase?
Power Query transformations apply to the entire column. To affect only specific rows, filter the rows first, apply the transformation, and then remove the filter (or use a conditional column).
What happens to the original data after I load the query?
The original data remains unchanged. Power Query creates a new table or modifies the output in Excel, but the source is untouched.
Can I use Text.Lower on a column with mixed data types?
No, Text.Lower requires text. If the column has numbers, you will get errors. Convert the column to text first or handle errors separately.
Is there a way to lowercase all text columns at once?
You can select multiple columns (hold Ctrl and click headers) and then apply the lowercase transformation from the Transform tab. This works for all selected text columns.