help with filling in dates

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi:

My apologies for presenting a screenshot but this is all I have access to.

hrk4gm.png


I am trying to fill dates in column A. The expected results are shown in screenshot.

The simplest way to explain:

For every blank cell or group of blank cells, copy date above the blank cell into the blank cell or cells. All other data must remain as is.

Could you help please.


Regards,

Sean
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If i correctly understood, you want to fill all the blank cells with the value above them.

In order to achieve this, you can take the following steps:
1. Select the column/s you want to fill in the blanks
2. Press CTRL+G on Windows and press "Special" button or go to Home tab -> Find and Select -> Go To Special
3. Make sure "Blanks" is selected and press OK button
4. Click in the formula bar and write "=A1" (supposing A1 is the first value above the blank cells)
5. Click CTRL+Enter
 
Last edited by a moderator:
Upvote 0
How about
Code:
Sub Sean15()
   With Range("A3", Range("B" & Rows.Count).End(xlUp).Offset(, -1))
      .SpecialCells(xlBlanks).FormulaR1C1 = "=r[-1]c"
      .Value = .Value
   End With
End Sub
If A3 is blank then it will populate the word"Date" from the header to the first blank cells.
@Exceladd1ct
Please do not quote entire posts as it just clutters up the thread.
 
Upvote 0
Hi:

Thank you very much Exceladd1ct and Fluff.

I went with post #2 .


Regards,

Sean
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

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