How to fill empty cells with 0, with value above/below in Excel

In this article you'll learn a trick to select all empty cells in an Excel spreadsheet at once and fill in blanks with value above / below, with zero or any other value.

To fill or not to fill? This question often touches blank cells in Excel tables. On the one hand, your table looks neater and more readable when you don't clutter it up with repeating values. On the other hand, Excel empty cells can get you into trouble when you sort, filter the data or create a pivot table. In this case you need to fill in all the blanks. There are different methods to solve this problem. I will show you one quick and one VERY quick way to fill empty cells with different values in Excel.

Thus my answer is "To Fill". And now let's see how to do it.

How to select empty cells in Excel worksheets

Before filling in blanks in Excel, you need to select them. If you have a large table with dozens of blank blocks scattered throughout the table, it will take you ages to do it manually. Here is a quick trick for selecting empty cells.

  1. Pick the columns or rows where you want to fill in blanks.
    Select the columns or rows where you want to fill in blanks
  2. Press Ctrl + G or F5 to display the Go To dialog box.
  3. Click on the Special button.
    Press Ctrl + G or F5 to display the Go To dialog box

    Note. If you happen to forget the keyboard shortcuts, go to the Editing group on the HOME tab and choose the Go To Special command from the Find & Select drop-down menu. The same dialog window will appear on the screen.

    Choose Go To Special from the Find & Select drop-down menu to display the Go To Special dialog

    The Go To Special command allows you to select certain types of cells such as ones containing formulas, comments, constants, blanks and so on.

  4. Select the Blanks radio button and click OK.
    Choose Blanks to get only empty cells selected

Now only the empty cells from the selected range are highlighted and ready for the next step.
The empty cells become highlighted

Excel formula to fill in blank cells with value above / below

After you select the empty cells in your table, you can fill them with the value from the cell above or below or insert specific content.

If you're going to fill blanks with the value from the first populated cell above or below, you need to enter a very simple formula into one of the empty cells. Then just copy it across all other blank cells. Go ahead and read below how to do it.

  1. Leave all the unfilled cells selected.
  2. Press F2 or just place the cursor in the Formula bar to start entering the formula in the active cell.

    As you can see in the screenshot above, the active cell is C4.

  3. Enter the equal sign (=).
  4. Point to the cell above or below with the up or down arrow key or just click on it.
    Enter the equal sign and point to the cell above to display the formula in the empty cell

    The formula (=C3) shows that cell C4 will get the value from cell C3.

  5. Press Ctrl + Enter to copy the formula to all the selected cells.
    Press Ctrl + Enter to fill all the blank cells

Here you are! Now each selected cell has a reference to the cell over it.

Note. You should remember that all cells that used to be blank contain formulas now. And if you want to keep your table in order, it's better to change these formulas to values. Otherwise, you'll end up with a mess while sorting or updating the table. Read our previous blog post and find out two fastest ways to replace formulas in Excel cells with their values.

Use the Fill Blank Cells add-in by Ablebits

If you don't want to deal with formulas every time you fill in blanks with cell above or below, you can use a very helpful add-in for Excel created by Ablebits developers. The Fill Blank Cells utility automatically copies the value from the first populated cell downwards or upwards. Keep on reading and find out how it works.

  1. Download the add-in and install it on your computer.

    After the installation the new Ablebits Utilities tab appears in your Excel.

  2. Select the range in your table where you need to fill empty cells.
  3. Click the Fill Blank Cells icon on the Ablebits Utilities tab.
    Install the add-in and find the Ablebits Utilities tab in the Excel window

    The add-in window displays on the screen with all the selected columns checked.
    Click Fill Blank Cells icon to open the add-in dialog window

  4. Uncheck the columns that don't have empty cells.
  5. Select the action from the drop-down list in the bottom-right corner of the window.

    If you want to fill the blanks with the value from the cell above, choose the Fill cells downwards option. If you want to copy the content from the cell below, then select Fill cells upwards.

  6. Press Fill.
    Choose the columns and the action for the add-in to fulfill

Done! :)
Press Fill to fill empty cells in Excel

Besides filling empty cells, this tool will also split merged cells if there are any in your worksheet and indicate table headers.

Check it out! Download the fully-functional trial version of the Fill Blank Cells add-in and see how it can save you much time and effort.

Fill empty cells with 0 or another specific value

What if you need to fill all the blanks in your table with zero, or any other number or a specific text? Here are two ways to solve this problem.

Method 1

  1. Select the empty cells.
  2. Press F2 to enter a value in the active cell.
    Press F2 to enter the value in the active cell of the selected range
  3. Type in the number or text you want.
  4. Press Ctrl + Enter.
    Press Ctrl + Enter to copy the input value from the active cell into all the blanks

A few seconds and you have all the empty cells filled with the value you entered.

Method 2

  1. Select the range with empty cells.
    Select the range in which you need to fill empty cells
  2. Press Ctrl + H to display the Find & Replace dialog box.
  3. Move to the Replace tab in the dialog.
  4. Leave the Find what field blank and enter the necessary value in the Replace with text box.
    Type in the value in the Replace with text box to fill in blanks with it
  5. Click Replace All.

It will automatically fill in the blank cells with the value you entered in the Replace with text box.

Whichever way you choose, it will take you a minute to complete your Excel table.

Now you know the tricks for filling in blanks with different values in Excel 2013. I am sure it will be no sweat for you to do it using a simple formula, Excel's Find & Replace feature or user-friendly Ablebits add-in.

195 comments

  1. How to add null value in empty cells?

  2. Thanks a lot, really works.

  3. Thank you so much!

  4. This has solved my 2 year old pending query, thanks a tonne for the solution... :) :)

  5. Thanks sir

  6. how to replace blanks cells with zero in specific data column using VBA macros

  7. Thanks for the excellent share. Best part is you have share every possible move for the single function, this method is great and will really help a larger audience as it gives brighter options to choose which method one's like.

    Cheers!!!

  8. I'm so grateful that you exist. TRULY

  9. Thank you, worked perfectly :)

  10. Bless you! :D :D

  11. had 3k records to fill in the gaps for.. saved my life

  12. Hello, this does not seem to be working for me.... In the cells to be filled with the above cell content, only the formula entered appears, not the value. eg in the empty cells I see "=A2" but not the value...

  13. Filter the Blank Cells.

    if C1 contain the data to fill & 1st blank cell is C2

    then type +C2=C1

    then drag it to the below.....

    This is easy for me..

    • Hi Santhosh,
      Can you please be specific with the formula. For example I have two column, the first column contains a list of code and second column contain corresponding product . But in the column of the product there are some blanks which need to be fill with the codes. can please give formula for it.
      for ex:
      A B
      1 Apple
      2
      3 banana
      4 orange
      5
      6
      7 grapes
      8
      thank you

  14. Really Helpful ! Thank you

  15. I work in the financial services and you lot just saved me my job!!! Thank youuuuuu :)

  16. Thanks . Many Many help us jillal

  17. Thanks . Many Many help us.

  18. That's gr8!

  19. Thank you so much!

  20. Really helpful! Thanks so much!!

  21. Thats amazing! You helped me save so much time.
    Thanks a lot for sharing the wonderful tips!

  22. I would like to highlight every other row in my Excel worksheet to facilitate viewing data. Is there an easy way to do that? I have over 50 rows each month.

  23. THANK YOU SO MUCH..Saved me lots of time. God Bless!

  24. Learnt something new today.. thanks a lot

  25. What a great piece! Thanks a lot.

  26. Its very helpful.Thank you so much for this detailed explanation

  27. Thank you for the clear concise instructions!

  28. Do you know if there's any way to do this in google sheets?
    Thanks!

  29. thank you so much - amazing tips..

  30. Grt!

  31. Great tip! Thanks a lot :)

  32. Thank you very much sir, it saved me lot of time and tension

  33. EXCELLENT SIR, I AM APPLY THIS FORMULA THIS IS WORKING AND HELP FULL. THANK YOU ONCE AGAIN SIR

    • You mean Miss, not Sir. Why would you assume the writer is a man? You are talking to an excel Queen here.

  34. thank you for these :)

  35. Thank you so much....amazing short cut.....

  36. Wow! Thank you so much. You saved a lot of time for me! ;)

  37. Saved me a lot of time. Brilliant, thank you!

  38. Hurrah! After all I got a weeb site from where I be able to in fact take valuable facts regarding my study and
    knowledge.

  39. Thanks for this, extremely time saving method, works perfect!!

  40. you are in point of fact a excelkent webmaster. The website loading pace is incredible.
    It kind of feels that yyou are doing any unique trick.

    Moreover, Thee contdnts are masterwork. you've performed a fantatic task in this topic!

  41. Thanks a lot, great shortcut!

  42. Thank you.

  43. Thank you for this!! My wrist was hurting from dragging and I knew there had to be a better way. Talk about a life saver!!

  44. How could I fill the blank cells with formulas that change? Let's say i want to add vlookup only in blank cells but the first reference must change in every cell so that it will be the horizondal value.

  45. how can fill slush in blank cell

  46. Thank you. helped me with thousand of records.

  47. Awesome... saved me alot of time. IT WORKS PERFECTLY

  48. I hope you work with Microsoft team of excel help to describe everything as you did here. Thank you

  49. Nice! and helped me with thousand of records. Thank you

  50. This worked great for me!!!

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)