How to Fill Empty Cells in Excel: 4 Reliable Methods
In this article
Filling empty cells in Excel ensures data integrity, prevents errors in calculations, and makes reports easier to read. You can do this quickly using Excel’s built-in tools—no add-ins or macros required. First, select the range containing the empty cells you want to fill, then choose one of the four proven methods below based on your needs: fill with a specific value, copy from above/below, use Flash Fill, or apply a formula. All methods work in Excel 2010 and later for Windows and macOS.
What You'll Need
- Microsoft Excel (Microsoft 365, Excel 2021, 2019, 2016, 2013, or 2010) installed on Windows or macOS
- A workbook with data containing empty (blank) cells
- Basic familiarity with selecting cells and ranges in Excel
Step-by-Step
- Identify and select your target range
Click and drag to highlight the cells you want to fill, or pressCtrl + Atwice to select the entire used range of your data. Make sure the selection includes only the empty cells you intend to fill—avoid selecting entire columns unless necessary, as that can slow performance and cause unintended changes. - Method 1: Fill with a specific value (constant)
Type the value you want (e.g.,0,N/A, orUnknown) into any cell within your selection. With the cells still selected, pressCtrl + Enter(Windows) orCommand + Enter(macOS). Excel will fill all selected empty cells with that value. Important: Do not press Enter after typing—this only edits the active cell. - Method 2: Fill empty cells with the value from the cell above
Select the range containing blanks (e.g., A2:A100). Go to Home > Find & Select > Go To Special… (or pressCtrl + G, then Special…). In the dialog box, check Blanks and click OK. Excel now selects only the empty cells. Type=, then press the Up Arrow key once to reference the cell above (e.g.,=A1). PressCtrl + Enter(Windows) orCommand + Enter(macOS). Excel fills each blank with the value directly above it. Careful: This works only if data starts in row 2 or below; row 1 has no cell above. - Method 3: Fill empty cells with the value from the cell below
First, sort your data so empty cells appear at the top of their column (optional but recommended for accuracy). Then select the range, go to Home > Find & Select > Go To Special…, choose Blanks, and click OK. Now type=, press the Down Arrow once to reference the cell below (e.g.,=A3), then pressCtrl + Enter. Note: This may cause #REF! errors if the blank is in the last row—avoid this method if blanks are at the bottom. - Method 4: Use Flash Fill to infer patterns
Type at least two example values in adjacent cells to show the pattern (e.g., if column A has first names and column B is blank, type two full names like "John Smith" in C2 and C3). Select the first blank cell (e.g., B2), go to Home > Fill > Flash Fill (or pressCtrl + E). Excel will auto-complete the column based on the pattern. Use only for simple concatenation or splitting tasks—not for numerical logic. - Method 5: Apply a formula for dynamic filling
In a new helper column (e.g., column C), enter a formula like=IF(A2="",B1,A2)(to fill blanks with the value above) or=IF(A2="",A3,A2)(to fill with the value below—adjust as needed). Drag the fill handle down to copy. Then copy the helper column, right-click the original column, choose Paste Special > Values, and delete the helper column. This preserves the filled data permanently.
Common Mistakes
- Pressing Enter instead of Ctrl+Enter after typing in a multi-cell selection—this only fills the active cell, leaving others blank.
- Selecting entire columns (e.g., A:A) with Go To Special, which includes millions of unused cells and may crash Excel on large datasets.
- Using Go To Special without checking the range first, leading to blanks in unrelated columns being filled unexpectedly.
- Ignoring hidden rows or filtered data—Go To Special only selects visible blanks, so unfilter data first if you want to fill hidden cells too.
- Assuming Flash Fill works for complex logic—it infers patterns from examples and fails with inconsistent formatting or too few examples.
Tips
- Backup your file first with File > Save As before bulk edits.
- Use conditional formatting to highlight blanks (Home > Conditional Formatting > Highlight Cells Rules > Blanks) to verify coverage before filling.
- For dates or numbers, type the first value (e.g.,
2024-01-01), select the range, and useCtrl + Dto fill down—Excel auto-increments if you drag or use Series (Home > Fill > Series). - Combine with data validation after filling to restrict future entries (e.g., Data > Data Validation > List) to prevent new blanks.
- Use
IFERRORwith formulas like=IFERROR(A2/B2,0)to return 0 instead of #DIV/0! errors.
Troubleshooting
If empty cells remain unfilled or errors appear:
- Check for invisible spaces—press
Ctrl + H, enter a space in Find what, leave Replace with blank, and click Find Next. Spaces count as content and prevent blanks from being selected. - Remove filters—Go To Special ignores hidden (filtered) cells. Click Data > Clear (or Filter) to show all rows.
- Verify cell formatting—if cells appear blank but contain a space or non-breaking space (e.g.,
CHAR(160)), use=TRIM(SUBSTITUTE(A2,CHAR(160),""))first to clean data. - Check for merged cells—Go To Special may skip them. Unmerge via Home > Merge & Center > Unmerge Cells before filling.
- Restart Excel—rarely, a memory glitch prevents Go To Special from working. Close all workbooks, reopen, and retry with a smaller range.
- Use Power Query for large datasets—if Excel freezes, go to Data > Get Data > From Other Sources > From Microsoft Query, then fill blanks in the Power Query Editor before loading back.
Frequently Asked Questions
Can I fill empty cells with the average of nearby values?
Yes, but not directly with Go To Special. Use a helper column with=IF(A2="",AVERAGE(A1,A3),A2), then paste values. For large ranges, consider Power Query or a VBA macro (not covered here).
Why does Go To Special skip some cells?
Cells containing formulas returning blank text (="") are not truly empty and won’t be selected. Use =ISBLANK(A2) to test—TRUE means truly blank; FALSE means content exists, even if invisible.
Will filling blanks affect pivot tables?
Yes. Refresh the pivot table after filling cells (right-click pivot > Refresh). Blank cells in source data may appear as zeros or blanks in the pivot depending on the field settings—edit the field’s Null Field Settings to show "(blank)" or "0".Can I fill blanks only in specific rows?
Yes. Manually select only the desired blank cells (holdCtrl while clicking), then use Ctrl + Enter to fill them with one value. Or use Go To Special after filtering to show only target rows.
Does this work in Excel Online or mobile apps?
Mostly yes for basic methods. Go To Special is available in Excel for the web on desktop browsers, but Flash Fill and Power Query are not supported on mobile apps. Use formulas and Paste Special instead.How do I undo a fill if I made a mistake?
PressCtrl + Z immediately. If you’ve saved, use File > Info > Version History (in OneDrive/SharePoint) to restore a previous version.