fill empty cells from above cells

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi

I have blank cells in the sheet below (please see the link). To fill these blank cells, I want to copy the content of the cells above.
In the original sheet, I just highlighted the first few cells with yellow for you. Thank you very much

Example


[TABLE="width: 500"]
<tbody>[TR]
[TD]contract[/TD]
[TD]key[/TD]
[TD]name[/TD]
[TD]location[/TD]
[TD]date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]john[/TD]
[TD]1 city[/TD]
[TD]1-1-2000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1 city[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[TD]mary[/TD]
[TD]city a[/TD]
[TD]1-10-2010[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]city a[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]alex[/TD]
[TD]city b[/TD]
[TD]9-9-2009[/TD]
[/TR]
</tbody>[/TABLE]

The result should be

[TABLE="width: 500"]
<tbody>[TR]
[TD]contract[/TD]
[TD]key[/TD]
[TD]name[/TD]
[TD]loction[/TD]
[TD]date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]john[/TD]
[TD]1 city[/TD]
[TD]1-1-2000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]john[/TD]
[TD]1 city[/TD]
[TD]1-1-200[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[TD]mary[/TD]
[TD]city a[/TD]
[TD]1-10-2010[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[TD]mary[/TD]
[TD]city a[/TD]
[TD]1-10-2010[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]alex[/TD]
[TD]city b[/TD]
[TD]9-9-2009[/TD]
[/TR]
</tbody>[/TABLE]

The original sheet can be found here:

https://drive.google.com/file/d/1c641_Eq1JMKkYCUQ_-nvRecSK-DC0xCH/view?usp=sharing
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Select the data, press f5, click the Special button and choose Blank cells from the options, then press OK. Now type an = sign, press the Up arrow and then Ctrl+Enter.
 
Upvote 0
Thank you all for the help. It did work perfectly. Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top