Discover the ultimate guide to mastering the art of line-through text in Excel. Whether you're a beginner or an experienced user, this comprehensive tutorial will equip you with over 10 methods to strike through text effortlessly. Elevate your Excel skills and enhance the readability of your data with these powerful techniques.
Understanding Line-Through Text in Excel

Line-through text is a formatting feature in Excel that allows you to strike through words or phrases within a cell. This visual effect can be particularly useful for indicating outdated or irrelevant information, drawing attention to specific details, or simply adding a professional touch to your spreadsheets. In this guide, we'll explore various methods to achieve this effect, ensuring you become a master of line-through text in Excel.
Method 1: Using the Format Cells Dialog Box

The Format Cells dialog box is a versatile tool that offers a wide range of formatting options, including line-through text. Here's how to use it:
- Select the cell or range of cells you want to format.
- Right-click on the selected cells and choose "Format Cells" from the context menu.
- In the Format Cells dialog box, navigate to the Font tab.
- Locate the Effects section and check the "Strikethrough" box.
- Click OK to apply the line-through effect to the selected cells.
Method 2: Applying Line-Through Text with Keyboard Shortcuts

If you prefer a quicker approach, Excel provides keyboard shortcuts to apply line-through text. Follow these steps:
- Select the cell or range of cells you want to format.
- Press Ctrl + 5 on your keyboard. This shortcut will instantly apply the line-through effect to the selected cells.
Method 3: Using the Font Dialog Box

The Font dialog box offers an alternative way to apply line-through text. Here's how to access it:
- Select the cell or range of cells you want to format.
- Go to the Home tab in the Excel ribbon.
- In the Font group, click the Dialog Box Launcher icon (the small arrow in the bottom-right corner of the Font group).
- In the Font dialog box, navigate to the Effects section and check the "Strikethrough" box.
- Click OK to apply the line-through effect to the selected cells.
Method 4: Customizing Line-Through Text with Conditional Formatting

Conditional formatting allows you to apply line-through text based on specific conditions. This method is particularly useful when you want to highlight cells that meet certain criteria. Here's how to set it up:
- Select the range of cells you want to format.
- Go to the Home tab and click on Conditional Formatting in the Styles group.
- Choose New Rule from the drop-down menu.
- In the New Formatting Rule dialog box, select "Format only cells that contain" as the rule type.
- Set the conditions for the line-through effect, such as specific text, values, or formulas.
- Click Format and navigate to the Font tab.
- Check the "Strikethrough" box and click OK to apply the formatting.
Method 5: Applying Line-Through Text with VBA Code

If you're comfortable with Visual Basic for Applications (VBA), you can create a custom function to apply line-through text. Here's a simple VBA code snippet you can use:
Sub ApplyStrikethrough()
Dim rng As Range
Set rng = Selection
rng.Font.Strikethrough = True
End Sub
To use this code:
- Open the VBA editor by pressing Alt + F11 or going to Developer > Visual Basic.
- Insert a new module and paste the code into it.
- Run the macro by pressing F5 or clicking the Run button.
- Select the cells you want to format and run the macro again to apply the line-through effect.
Method 6: Creating a Custom Format for Line-Through Text

You can create a custom format to quickly apply line-through text to specific cells. Here's how:
- Select the cell or range of cells you want to format.
- Go to the Home tab and click on the Number Format drop-down menu.
- Choose More Number Formats... from the menu.
- In the Format Cells dialog box, select Custom from the Category list.
- In the Type field, enter the following custom format code: "@" (without the quotes) followed by the letter "X" (for strikethrough) or "_" (for underline). For example: "@X" or "@_".
- Click OK to apply the custom format and strike through the selected cells.
Method 7: Using Excel's Built-in Strikethrough Button

Excel provides a dedicated Strikethrough button in the Font group on the Home tab. Here's how to use it:
- Select the cell or range of cells you want to format.
- Go to the Home tab and locate the Font group.
- Click on the Strikethrough button (it looks like a line through the letter "A").
- The line-through effect will be applied to the selected cells.
Method 8: Combining Line-Through Text with Other Formats

You can combine line-through text with other formatting options to create visually appealing spreadsheets. For example, you can apply line-through text along with bold, italic, or underline effects. Here's how:
- Select the cell or range of cells you want to format.
- Go to the Home tab and use the formatting options in the Font group, such as Bold, Italic, or Underline.
- Apply the line-through effect using any of the methods mentioned earlier, such as the Format Cells dialog box or keyboard shortcuts.
- The selected cells will now have the combined formatting of line-through text and other chosen effects.
Method 9: Applying Line-Through Text to Specific Text in a Cell

Sometimes, you may want to strike through only specific words or phrases within a cell. Excel allows you to do this using the CONCATENATE function. Here's how:
- In an empty cell, enter the following formula: =CONCATENATE(A1,"~",B1), where A1 is the cell containing the text before the strike-through, and B1 is the cell containing the text after the strike-through.
- Replace the comma between "~" with a space to separate the text.
- Press Enter to see the result, which will include the strike-through effect between the specified text.
Method 10: Using Excel's Built-in Functions for Line-Through Text
Excel provides a few built-in functions that can help you achieve the line-through effect. Here are two examples:
Function | Description |
---|---|
CHAR(126) | Inserts a tilde (~) character, which can be used to simulate a line-through effect. |
CHAR(25) | Inserts a strike-through character, creating a more explicit line-through effect. |

You can use these functions within formulas to apply the line-through effect to specific cells.
Method 11: Applying Line-Through Text with Custom Formatting Codes
Excel allows you to create custom formatting codes to apply line-through text. Here's an example:
- Select the cell or range of cells you want to format.
- Go to the Home tab and click on the Number Format drop-down menu.
- Choose More Number Formats... from the menu.
- In the Format Cells dialog box, select Custom from the Category list.
- In the Type field, enter the following custom format code: "@" (without the quotes) followed by the letter "X" (for strikethrough) or "_" (for underline). For example: "@X" or "@_".
- Click OK to apply the custom format and strike through the selected cells.
Method 12: Using Excel's Find and Replace Feature for Line-Through Text
Excel's Find and Replace feature can be utilized to quickly apply the line-through effect to specific text. Here's how:
- Select the range of cells you want to search and replace.
- Go to the Home tab and click on Find & Select in the Editing group.
- Choose Replace... from the drop-down menu.
- In the Find and Replace dialog box, enter the text you want to strike through in the Find what field.
- In the Replace with field, enter the same text followed by the letter "X" (for strikethrough) or "_" (for underline). For example: "TextX" or "Text_".
- Click Replace All to apply the line-through effect to all occurrences of the specified text.
Method 13: Creating a Macro to Apply Line-Through Text
If you frequently need to apply line-through text, you can create a custom macro to streamline the process. Here's a simple VBA macro you can use:
Sub ApplyStrikethroughMacro()
Dim rng As Range
Set rng = Selection
rng.Font.Strikethrough = True
End Sub
To use this macro:
- Open the VBA editor by pressing Alt + F11 or going to Developer > Visual Basic.
- Insert a new module and paste the code into it.
- Assign a keyboard shortcut or a button to run the macro.
- Select the cells you want to format and run the macro to apply the line-through effect.
Method 14: Applying Line-Through Text with Excel's Advanced Filter
Excel's Advanced Filter feature can be used to apply line-through text to specific criteria. Here's how:
- Select the range of cells you want to filter.
- Go to the Data tab and click on Advanced in the Sort & Filter group.
- In the Advanced Filter dialog box, select Filter the list, in-place or Copy to another location as per your preference.
- Enter the criteria for the line-through effect, such as specific text or values.
- Click OK to apply the filter and strike through the cells that meet the specified criteria.
Method 15: Using Excel's Text to Columns Feature for Line-Through Text
The Text to Columns feature in Excel can be used to separate text and apply the line-through effect. Here's how:
- Select the cell or range of cells containing the text you want to separate.
- Go to the Data tab and click on Text to Columns in the Data Tools group.
- In the Convert Text to Columns Wizard, choose Delimited or Fixed width as per your data structure.
- Set the delimiter or specify the fixed width to separate the text.
- In the Data preview section, apply the line-through effect to the desired column using any of the methods mentioned earlier.
- Click Finish to complete the conversion and apply the line-through effect.
Conclusion
Mastering the art of line-through text in Excel opens up a world of possibilities for enhancing the visual appeal and readability of your spreadsheets. Whether you're a data analyst, a financial professional, or simply a spreadsheet enthusiast, these methods will empower you to create visually stunning and informative Excel sheets. By applying line-through text, you can effectively communicate changes, updates, or corrections, making your data more accessible and understandable to your audience. So, embrace these techniques, explore their potential, and elevate your Excel skills to new heights!
Can I remove the line-through effect from cells after applying it?

+
Yes, you can easily remove the line-through effect by following the same steps as applying it. Simply uncheck the “Strikethrough” option in the Format Cells dialog box or use the keyboard shortcut Ctrl + 5 again to toggle the effect off.
Is it possible to apply line-through text to merged cells?

+
Yes, you can apply line-through text to merged cells. However, keep in mind that the effect will be applied to the entire merged cell, not individual parts.
Can I customize the color of the line-through text?

+
Yes, you can customize the color of the line-through text. In the Format Cells dialog box, navigate to the Font tab and select the desired color from the Color dropdown menu.
Are there any limitations to using line-through text in Excel?

+
While line-through text is a powerful feature, it’s important to note that it may not be supported by all Excel versions or compatibility modes. Additionally, some formatting options, like cell borders, may not work well with line-through text.