Fill cells with the contents of the next non-blank cell above

Status
Not open for further replies.

ellison

Active Member
Joined
Aug 1, 2012
Messages
343
Office Version
  1. 365
Platform
  1. Windows
Hi, trying to (repeatedly!) fill cells with the contents of the next non-blank cell above.
And we can see how to go through the standard procedure of highlighting the cells, then: Home / Find & Select / Go To Special / Fill in Blanks / Enter Formula / Hit Ctrl Enter
But between fat fingers and having to repeat this over and over, we are seeing some mistakes.
Is there some code or another way of doing this to give us the result we are trying to aim at? :unsure:

Hopefully these 2 mini sheets show V1 with blanks cells throughout. And V2 showing how we would like it to end up...


fill-from-next-none-blank-cell-above-question.xlsm
AB
1RowV1
22
331
44fill
55
66
77in
88
99
1010
1111
1212the
1313blanks
1414
1515
Sheet1



fill-from-next-none-blank-cell-above-question.xlsm
AB
1RowV2 with blanks filled in
22
331
44fill
55fill
66fill
77in
88in
99in
1010in
1111in
1212the
1313blanks
1414blanks
1515blanks
Sheet2



Thanks for taking a look!
 
This is a different question and you should start a new thread.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
This is a different question and you should start a new thread.

In fact, that had already been done ..
Duplicate to: How To Fill Blanks

@jamiguel77
In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this older thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,093
Messages
6,123,068
Members
449,091
Latest member
remmuS24

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