How to Remove First Character in Excel (6 Quick Ways)

Here we’ve got a dataset with the Names of some students and their Student IDs of any class. We need to remove the first character (the ‘S’) from each Student ID.

A dataset containing Student's Name and ID's


Method 1 – Using RIGHT and LEN Functions to Remove the First Character in Excel

Steps:

  • Insert a new column next to the Student ID column.

Creating a separate column for desired output

  • Select the first cell in the new column, D5.
  • In that cell, copy the following formula:
=RIGHT(C5,LEN(C5)-1)
[Here C5 is the cell reference of the first cell of the column Student ID. You can use your reference cell.]

Using the RIGHT and LEN functions to remove first character in Excel

Formula Breakdown

  • LEN(C5)-1 returns a number one less than the length of the string C5.
  • Here, the length of the string S201678 is 7. So LEN(C5)-1 returns 6.
  • RIGHT(C5,LEN(C5)-1) now becomes RIGHT(C5,6) and returns 6 characters from the right of the string C5.
  • Thus, it returns the string removing the first character.

  • Press Enter to get the following result where the ‘S’ is removed from the data in cell C5.

Single output using the RIGHT and the LEN functions to remove first character in Excel

  • Drag the Fill Handle to do the same for the rest of the cells as well.

Using the Fill Handle feature to get result for the rest of the rows

  • We will get results like the following.

successfully removed the first character in excel

Read More: How to Remove First 3 Characters in Excel


Method 2 – Delete the First Character by Combining MID and LEN Functions in Excel

Steps:

  • Create a new column for the results.

Creating a separate column for desired output

  • Select the cell D5 and input the following formula:
=MID(C5,2,LEN(C5)-1)

Combining the MID and LEN functions to remove first character in Excel

Formula Breakdown

  • LEN(C5)-1 returns a number one less than the length of the string C5.
  • Here the length of the string S201678 is 7. So LEN(C5)-1 returns 6.
  • MID(C5,2,LEN(C5)-1) now becomes MID(C5,2,6) and returns 6 characters starting from the 2nd character of the string C5.
  • Thus, it returns the string removing the first character.

  • Press Enter.

Single output using the MID and the LEN functions to remove first character in Excel

  • Double-click the Fill handle.

Using the Fill Handle feature to get result for the rest of the rows

Read More: How to Remove Last Character in Excel


Method 3 – Using the REPLACE Function to Remove the First Character in Excel

Steps:

  • Create a separate column for Corrected Student IDs.

Creating a separate column for desired output

  • Select the first cell of the column, D5, and input the following formula:

=REPLACE(C5,1,1,"")

Using the REPLACE function to remove first character in Excel

Formula Breakdown

  • REPLACE(C4,1,1,””) replaces the first character of the string C5 with an empty character (“”).
  • Thus, it returns the string removing the first character.
  • Press Enter to get the result.

Single output using the REPLACE function to remove first character in Excel

  • Drag the Fill Handle to get the full results for the column.

Using the Fill Handle feature to get result for the rest of the rows

Read More: How to Remove Last Digit in Excel


Method 4 – Using Excel Text to Columns Feature to Remove the First Character

Steps:

  • Select all the data from where you want to remove the first characters.

Selecting Data Range where we will apply this method

  • Go to the Data tab in the Ribbon and select the Text to Column option under the Data Tools section.

Using Excel Ribbon to apply the Text to Columns feature

  • You will get a dialogue box called Convert Text to Column Wizard. Click on Next.

Using the Convert Text to Columns Wizard window to remove first character in excel

  • In the second dialogue, select Other and write S in the box next to it. The S will be excluded from the data in the Data Preview section.
  • Click on Next.

Using the Convert Text to Columns Wizard window to remove first character in excel

  • In the third dialogue, click on the Do not import column (skip) option and press Finish.

Using the Convert Text to Columns Wizard window to remove first character in excel

  • We will get results like the following.

successfully removed the first character in excel using the Text to Columns feature


Method 5 – Applying Auto Fill Feature to Remove the First Character in Excel

Steps:

  • Create a separate column for the results. Creating a separate column for desired output
  • Manually write the data without the first character. We will write the Student ID of cell C5 in cell D5 without the ‘S’.

Writing the first data removing the first character in excel

  • Drag the Fill Handle for the rest of the cells.

utilizing the Auto Fill feature to remove first character in Excel

  • All the cells will initially contain the same data.
  • To get the actual result, click on the small box at the bottom and select Fill Series.

Selecting Fill Series option to get expected results for rest of the cells

Shortcut

A smarter version of Auto Fill is the Flash Fill feature. After inserting the first result, go to the Data tab in the Ribbon and select Flash Fill under the Data Tools section.

Using Flash Fill from the Data tab in the Ribbon to remove first character in Excel


Method 6 – Using VBA Code to Remove First Character in Excel

Steps:

  • Go to the Developer tab in the Ribbon and click on Visual Basic. It will open the VBA window called Microsoft Visual Basic for Applications.

Get Visual Basic from the Developer tab in the Ribbon

  • Click on Insert and then on Module. A module box will appear.

Inserting a VBA Module

  • In the box, copy the following code:
Sub Remove_First_Characters()
For i = 1 To Selection.Rows.Count
    Selection.Cells(i, 1) = Replace(Selection.Cells(i, 1), Left(Selection.Cells(i, 1), 1), "")
Next i

End Sub

Inserting code in the Module

Code Breakdown

  • We have created a Subroutine named Remove_First_Characters.
  • We used a loop to change each of the data points.
  • For a specific selection, we have replaced the first character with a blank space using the REPLACE and LEFT functions like we used in the earlier methods.

  • Exit the window and go to the Excel sheet.
  • Select the cell range.

Selecting Data range to remove first character in excel

  • Go to the Developer tab in the Ribbon and select Macros.

Selecting macros from the Developer tab

  • Click on Remove_First_Characters and press on Run.

Applying the Subroutine to remove first character in Excel

  • We will get results like the following.

successfully removed the first character in excel using VBA code

Read More: How to Remove Last Character from String Using VBA in Excel


How to Remove First (or Last) n Characters in Excel

Let’s say we want to remove the first 4 (n=4) characters from the cells in our dataset.

Steps:

  • Select the destination cell and copy the following formula.
=RIGHT(C5,LEN(C5)-4)

Using the RIGHT and LEN functions to remove first 4 characters in Excel

Here, C5 is the reference cell that contains the data we want to change. The RIGHT function takes the data from the right side while the length of the data is determined by the LEN function. So, we get the data without the first 4 characters.

  • Press Enter to see the result.

successfully removed the first 4 character in excel

  • Drag the Fill Handle to fill up the rest of the cells.

Using the Fill Handle feature to get result for the rest of the rows

  • Similarly, for the last 4 characters, we can use the following formula and repeat the previous steps:
=LEFT(C5,LEN(C5)-4)

The LEFT function starts taking data from the left side.

Using the LEFT and LEN functions to remove first 4 characters in Excel

Read More: How to Remove the Last 3 Characters in Excel


Download Practice Workbook

<< Go Back To Excel Remove Characters From Left | Excel Remove Characters | Data Cleaning in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rifat Hassan
Rifat Hassan

Rifat Hassan, BSc, Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, has worked with the ExcelDemy project for almost 2 years. Within these 2 years, he has written over 250 articles. He has also conducted a few Boot Camp sessions on effective coding, especially Visual Basic for Applications (VBA). Currently, he is working as a Software Developer to develop and deploy additional add-ins to enhance the customers with a more sophisticated experience with Microsoft Office Suits,... Read Full Bio

2 Comments
  1. None of these worked. Using Office 365, whatever the latest version is, semicolons are used rather than commas, and even so the MID Function does not work properly. Maybe it’s because it’s an international numbering system (this should be mentioned more in help forums, the use of commas, decimals, and semicologs across national border)

    Maybe I’ll figure it out.

    • Hello, John!
      I hope you are doing well.
      About your problem, I think your windows list separator is set to semicolon instead of comma. In this regard, follow the steps below to solve your problem.
      1. Go to your Windows menu and search for the Run window.
      2. Afterward, open the Run window.
      Open Run Window
      3. Now, write intl.cpl in the Open: text box.
      4. Subsequently, click on the OK button.
      Run Window
      5. As a result, the Region window will appear.
      6. Following, click on the Additional settings… button.
      Region Window
      7. Consequently, the Customize Format window will appear. Here, you would see the List separator: option is selected as semicolon (;).
      Customize Format Window
      8. Following, change the List separator: option to comma (,) >> click on the Apply button >> click on the OK button.
      Customize Format Window
      9. Now close your Excel app and reopen the file. The formula will work fine.
      Thus, I hope your problem would be solved now. If it doesn’t, please let us know in the comment section again.

      Thanks,
      Tanjim Reza

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo