How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (2024)

Let’s consider the following dataset. It contains the list of product IDs, sales dates, and sales numbers. Some of the cells have blank values, which we will fill in a few different ways.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (1)

Method 1 – Using Excel Go To Special Tool to Fill Blank Cells with the Value Above

Steps:

  • Select the range of data where you want to fill the blank cells.
  • Go to the Home tab and the Editing group, select the Find & Select drop-down menu and choose Go To Special.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (2)

Note: You can avoid this by pressing F5 directly from the keyboard. This will also take you to the Go To Special box.

  • A dialog box named Go To Special appears.
  • Choose Blanks from the Go To Special box and click OK.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (3)

  • This selects all blank cells.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (4)

  • Write the formula into the cell as “=D5“.

=D5

Here, D5 is the reference of the cell above, with whose value you want to fill in the blank cells.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (5)

  • Press Ctrl + Enter,which fills the rest of the cells with a similar formula, using the previous cell’s reference.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (6)

Let’s convert the formulas into values.

  • Select the entire dataset.
  • Copy the entire dataset by pressing Ctrl + C.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (7)

  • Right-click and select Paste Values (V).

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (8)

  • Finally, the result will look like the following picture.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (9)

The cells have been converted from having a formula (that you have applied) into a static value.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (10)

Method 2 – Applying the Find & Replace Command to Fill Blank Cells

Steps:

  • Select the entire dataset.
  • Go to the Home tab and the Editing group, select the Find & Select drop-down menu, and choose Find.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (11)

  • A box will come up. Keep the Find what: box blank and click on Find All.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (12)

  • Shift your cursor from the dialog box and place it on the worksheet, then press CTRL+A from the keyboard. This will select all the blanks.
  • Click on Close to close the dialog box.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (13)

This will show the list of blanks in the selected range. For this dataset, the number of blanks found is 11.

  • Press “=” from the keyboard, and an equal sign will automatically show up in the active cell.
  • Write “D13” in the active cell.

=D13

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (14)

  • Press Ctrl+Enter.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (15)

Thus, you will find the result as shown.

Method 3 – Applying a Nested LOOKUP Formula in Excel to Fill Blank Cells

Steps:

  • Select the whole data set.
  • Choose Table from the Insert tab.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (16)

Note: You can also press the keyboard shortcut CTRL+T after selecting the whole data set.

  • The Create Table dialog box will open up and show the selected range of data.
  • Mark My table has headers checkbox and click OK.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (17)

  • Your dataset will look like a table with headers having arrow icons as shown below.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (18)

  • Select a random column F and copy the following formula:

=LOOKUP(ROW(B4:B14), IF(LEN(B4:B14), ROW(B4:B14)), B4:B14)

  • The result will show the data of column B along with filling up the blanks with a value above that cell.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (19)

  • Repeat the process for column C using the following formula:

=LOOKUP(ROW(C4:C14), IF(LEN(C4:C14), ROW(C4:C14)), C4:C14)

  • The values of Dates of Sales are different from the original dataset because the Number Format is General by default.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (20)

  • Change the format by selecting Short Date instead of General.

Follow the picture to find where to change.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (21)

  • Copy this formula into column H:

=LOOKUP( ROW(D4:D14), IF(LEN(D4:D14),ROW(D4:D14)), D4:D14)

  • This will give the following result:

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (22)

This method helps to have the original dataset and forms a new table to get the desired result.

Formula Breakdown

  • Here, lookup_value takes the data we want to find out. Since we have multiple rows in our data set the ROW function is working here which takes the range of the column.
  • lookup_vector is using the IF function nested with the LEN function and the ROW function. Both take the range of columns to create a vector form.
  • result_vector is the result values taken in the form of a vector to get the desired result.

Method 4 – Using Excel VBA to Fill Blank Cells with a Value Above

Steps:

  • Select the dataset and right-click on the name of the sheet.
  • Click on View Code from the Context menu.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (23)

  • The VBA window will open showing the General Window on it.
  • Copy the following code into it:

Code:

Sub FillCellFromAbove()For Each cell In Selection If cell.Value = "" Then cell.Value = cell.Offset(-1, 0).Value End IfNext cellEnd Sub

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (24)

  • Press F5 from the keyboard to run the code or click on the green arrow in the ribbon.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (25)

  • The code will run, and you can see the result in the worksheet.

How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (26)

Download Practice Workbook

You can download the workbook from here.

Fill Blank Cells with Value Above.xlsm

Related Readings

  • How to Fill Blank Cells with Value Below in Excel
  • How to Fill Blank Cells with 0 in Excel
  • Fill Blank Cells with Dash in Excel
  • How to Fill Blank Cells with Color in Excel
  • How to Fill Blank Cells with Value from Left in Excel

<< Go Back to Fill Blank Cells | Blank Cells in Excel | Excel Cells | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
How to Fill Blank Cells with Value Above in Excel (4 Easy Methods) - ExcelDemy (2024)
Top Articles
Latest Posts
Article information

Author: Annamae Dooley

Last Updated:

Views: 6518

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.