How to Change Case for Entire Column in Excel: 7 Methods

Method 1 – Excel PROPER Function to Change Case for Entire Column

Steps:

  • Create a new column (i.e. Modified Location Column).
  • Select a cell (i.e. E5).
  • Apply the following formula in that cell.
=PROPER(D5)

The PROPER function is applied for the value in cell D5.

  • Press ENTER to have the result.

Change Case in Excel for Entire Column

 


Method 2 – Use of UPPER Function to Change Case

Steps:

  • Create a new column first (i.e. Modified Location Column).
  • Pick a cell (i.e. E5).
  • Apply the following formula in that cell.
=UPPER(D5)

The UPPER function is applied to the value in cell D5.

Change Case in Excel for Entire Column

  • Press ENTER to have all the letters in Capital form.

  • AutoFill the rests.

Change Case in Excel for Entire Column


Method 3 – Applying LOWER Function to Change Case for Entire Column

Steps:

  • Create a new column (i.e. Modified Location Column).
  • Choose a cell (i.e. E5).
  • Input the following formula in that cell.
=LOWER(D5)

The LOWER function is applied in cell D5.

  • Hit ENTER to have the outcome.

Change Case in Excel for Entire Column

  • AutoFill the remaining cells.


Method 4 – Adopting Flash Fill Feature to Change Case for Entire Column

Steps:

  • Write the pattern the way you want your result. We mentioned the pattern where I want the first letter of every word in capital form.
  • Put your Cursor on that cell.

Change Case in Excel for Entire Column

  • Go to the Data tab.
  • Click on Flash Fill from the ribbon. Use the shortcut key for the functionality (CTRL + E).

The rest cells will be automatically filled with the given pattern.

Change Case in Excel for Entire Column


Method 5 – Change Case for Entire Column Using POWER QUERY

Steps:

  • Go to the Data tab.
  • Along with this, click the From Table/Range option from the ribbon.

  • Input your table range (i.e. B4:D10 ).
  • Check the My table has headers
  • Press OK.

Change Case in Excel for Entire Column

Power Query Editor will appear along with the table.

  • Select the entire column that you want to modify.
  • Go to Add Column.
  • Click on Format from the ribbon.

Change Case in Excel for Entire Column

  • Choose your case pattern in lowercase.

You will have the selected values in small letters.

Change Case in Excel for Entire Column

  • You can choose UPPERCASE if you want.

This will turn the selected values into capital letters.

Change Case in Excel for Entire Column

Choose the Capitalize Each Word option, too.

It will turn the first letter of every word into a capital letter.

Change Case in Excel for Entire Column


Method 6 – DAX Formula Implementation in Pivot Table

Steps:

  • Go to the Insert tab.
  • Click on Pivot Table from the ribbon.

  • Select the range in the worksheet in the Table/Range
  • Choose where you want your pivot table data. You have two options. Either in the existing worksheet or in the new worksheet.
  • Check Add this data to the Data Model box.
  • Press OK.

Change Case in Excel for Entire Column

  • Right-click on the table name and choose Add Measure option.

  • Fill in the Table Name, Measure Name, Formula, and Category section.

6.1. For UPPER Case

  • We used the Table Name as Range, Measure Name as Upper Case.
  • Input the following formula in the Formula
=CONCATENATEX( Range, UPPER( Range[Location] ), ", ")

Here, the CONCATENATEX function takes the first parameter as Table. The second parameter is a column that contains values to concatenate.

  • From the Category section, select General.
  • Press OK.

Change Case in Excel for Entire Column

  • From the PivotTable Fields, choose the columns as Rows and Values. We used Location as Rows and Upper Case as Values.

The entire column will automatically be changed to upper case. You can modify your data according to your choice.

Change Case in Excel for Entire Column


6.2. For LOWER Case

  • We input the Table Name as Range and Measure Name as Lower Case.
  • Apply the following formula to fulfill our purpose.
=CONCATENATEX( Range, LOWER( Range[Location] ), ", ")

The CONCATENATEX function takes the first parameter as Table, which I mentioned as Range. The second parameter is a column that contains values to concatenate, which is Location.

  • From the Category, pick General and press OK.

Change Case in Excel for Entire Column

  • From the PivotTable Fields, select the columns as Rows and Values. We used Location as Rows and Lower Case as Values.

Change Case in Excel for Entire Column

This will automatically change the column into lower case.


Method 7 – Applying VBA to Change Case for Entire Column

7.1. Change to Upper Case

Steps:

  • Select the cells that you want to change case (i.e. D5:D10).
  • Click on the Developer tab.
  • Go to Visual Basic.

Change Case in Excel for Entire Column

  • Input the following code in the related space.
Sub ChangeforUppercase()
            For Each Location In Selection
                 Location.Value = UCase(Location.Value)
            Next Location
    End Sub

We mentioned ChangeforUppercase() as Sub_Procedure and determined the variable as Location. We used the UCase function to convert the selected cell into Upper Case.

  • Press F5 to run the program.

You will be able to see the outcome after closing the code window.

Change Case in Excel for Entire Column


7.2. Change to LOWER Case

Steps:

  • Select the cells to change case (i.e. D5:D10).
  • Click on the Developer tab.
  • Go to Visual Basic.

  • Write down the following code:
Sub ChangetoLowercase()
            For Each Address In Selection
                 Address.Value = LCase(Address.Value)
            Next Address
    End Sub

We mentioned ChangetoLowercase() as Sub_Procedure and determined the variable as Address. We used VBA LCase function to convert the selected cell into Lower Case.

  • Press F5 to run the program.

Change Case in Excel for Entire Column

We will have our desired output on the selected cells.


7.3. Change to PROPER Case

Steps:

  • Select the cells that you wish to change case (i.e. D5:D10).
  • Click on the Developer tab.
  • Go to Visual Basic.

Change Case in Excel for Entire Column

  • Input the following code.
Sub ChangetoProperCase()
            For Each Location In Selection
                Location.Value = Application.WorksheetFunction.Proper(Location.Value)
            Next Location
    End Sub

We mentioned ChangetoProperCase() as Sub_Procedure and determined the variable as Location. We used the Application.WorksheetFunction.Proper function to convert in the pattern where the first letter of every word will be in Capital.

  • Press F5 to run the program perfectly.

We can have the values in Proper Case using VBA.

Change Case in Excel for Entire Column

 


Download Practice Workbook


Related Articles


<< Go Back to Change Case | Text Formatting | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Naimul Hasan Arif
Naimul Hasan Arif

Naimul Hasan Arif, a BUET graduate in Naval Architecture and Marine Engineering, has been contributing to the ExcelDemy project for nearly two years. Currently serving as an Excel and VBA Content Developer, Arif has written more than 120 articles and has also provided user support through comments His expertise lies in Microsoft Office Suite, VBA and he thrives on learning new aspects of data analysis. Arif's dedication to the ExcelDemy project is reflected in his consistent contributions and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo