KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to fill blank cells with dash in Excel?

AuthorXiaoyangLast modified

Supposing you have a range of data which contains some blank cells, and now, you want to fill each of these blank cells with the dash symbol as following screenshots shown, do you have any good ideas to fill the blank cells with dashes at once in Excel?

a screenshot of the original data rangea screenshot of an arrowa screenshot of the data range after replacing all blank cells with dashes

Compare methods for filling blank cells with dashes

Fill blank cells with dashes by using Go To Special

Fill blank cells with dashes by using Find and Replace function

Fill blank cells with dashes by using VBA code

Fill blank cells with dashes by using Kutools for Excel


Compare methods for filling blank cells with dashes

All four methods can fill blank cells with a dash, but they differ in setup and flexibility. Go To Special and Find and Replace are useful built-in Excel options, VBA provides programmable automation, while Kutools for Excel offers a dedicated Fill Blank Cells tool for directly applying a fixed value to the selected blanks.

MethodBest forWorkflowKey consideration
Go To SpecialOccasionally filling true blanks with dashesSelect Blanks, type a dash, then press Ctrl + EnterBuilt into Excel, but requires selecting the blank cells first
Find and ReplaceQuickly replacing blank cells with one fixed characterLeave Find what empty, enter a dash in Replace with, then click Replace AllSimple built-in method for one fixed replacement value
VBARepeated or customized automationInsert and run a macro that fills blank cells with "-"Flexible, but requires VBA code and macro permissions
Kutools for ExcelQuickly filling blanks with dashes or other specific valuesSelect the range, choose Fill Blank Cells > Fixed value, enter "-", and applyThe same tool also supports value-based and linear filling when your needs change
Recommendation: Use Go To Special or Find and Replace when you only need an occasional built-in Excel solution. Choose VBA when the task needs to become part of a customized macro workflow. For routine blank-cell filling, Kutools for Excel provides the most convenient and flexible approach: select the target range, enter the dash as a Fixed value, and apply it directly without blank-cell selection steps or VBA. The same Fill Blank Cells tool can also handle values from neighboring cells or linear values for other filling tasks.

Fill blank cells with dashes by using Go To Special

If you are familiar with the Go To Special feature of Excel, you can select all blank cells first, and then fill them with dashes at once. Please do as follows:

1. Select the range that you need to fill the blanks with dashes.

2. Then click Home > Find & Select > Go To Special, in the Go To Special dialog box, check Blanks option, see screenshots:

a screenshot of enabling the Go To Special featurea screenshot of arrowa screenshot of selecting Blanks in the Go To Special dialog box

3. Then click OK, and all blank cells have been selected as following screenshot shown:

a screenshot showing all blank cells are selected in the original data range

4. Enter the dash - into the active cell and press Ctrl + Enter together. All selected blank cells are filled with dashes at once, see screenshot:

a screenshot showing all selected blank cells are replaced with dashes


Fill blank cells with dash or any other specific values

Kutools for Excel’s Fill Blank Cells feature provides a dedicated way to fill blank cells with a dash, another fixed value, neighboring values, or linear values without switching between different Excel methods. Click to download Kutools for Excel!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


Fill blank cells with dashes by using Find and Replace function

In Excel, the Find and Replace function can also quickly replace blank cells with dashes.

1. Select the data range that you want to use, and press Ctrl + H keys to open the Find and Replace dialog box, see screenshot:

a screenshot of the Find and Replace dialog box

2. In the Find and Replace dialog, leave the Find what box empty, and enter a dash in the Replace with box, see screenshot:

a screenshot showing how to configure the Find and Replace dialog box

3. Click Replace All to replace the blank cells with dashes. A dialog box will show how many cells have been replaced. See screenshot:

a screenshot showing the number of replacements

4. Click OK and close the Find and Replace dialog.


Fill blank cells with dashes by using VBA code

The following VBA code can also help you fill blank cells with dashes.

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module window.

VBA code: Fill blank cells with dashes

Sub ChangeBlank()
'Update by Extendoffice
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    If Rng.Value = "" Then
        Rng.Value = "-"
    End If
    Rng.HorizontalAlignment = xlCenter
Next
End Sub

3. Press the F5 key to run this code, and a prompt box will pop up for you to select the data range you want to use, see screenshot:

a screenshot of selecting the original data range after running the code

4. Click OK, and all blank cells are filled with dashes immediately.


Fill blank cells with dashes by using Kutools for Excel

If you want to fill blanks without first selecting them through Go To Special or writing VBA code, Kutools for Excel's Fill Blank Cells provides a more direct solution. For this task, simply choose Fixed value and enter a dash. The same utility can also fill blanks based on neighboring values or with linear values when needed.

After downloading and installing Kutools for Excel, please do as follows:

1. Select the range that you want to fill the blanks with dashes.

2. Click Kutools > Insert > Fill Blank Cells, see screenshot:

a screenshot of enabling the Fill Blank Cells feature of Kutools

3. In the Fill Blank Cells dialog, select Fixed value under the Fill with section, and enter the dash (-) into the Filled value text box, see screenshot:

a screenshot of setting the Fill Blank Cells dialog box

4. Click OK or Apply, and all blank cells in the selection are filled with dashes.

To know more details about this Fill Blank Cells feature.

With this Fill Blank Cells tool, you can also do the following tasks:

How to fill blank cells with 0 or other specific value in Excel?

How to fill blank cells with value above in Excel?

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in