Autofill

krisso

Active Member
Joined
Sep 16, 2005
Messages
291
Hi,

I am trying to find a way of populating a blank cell in a range of data with the adjacent above cell that looks like this

100011 PIO 367.5
100016 BPO 741.2
PIO 1301.37
100032 BPO 583.5
PIO 695.65
100034 BPO 454.8
PIO 2397.12
100035 PIO 1731.87
100036 BPO 360
PIO 1527.62

so for cell a3 i need it to copy a2 and a5 to copy a4 etc etc

is there a macro of some description that would do this easily?

Thanks

Chris
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try

Code:
Sub FillA()
Dim LR As Long
LR = Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
With Range("A1:A" & LR)
    .SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
    .Value = .Value
End With
End Sub
 
Upvote 0
Select the cells in the first column then choose Edit|Go To|Special|Blanks|OK. In the formula bar type =, point to the cell above the active cell and press Ctrl+Enter. You can Copy/Paste Special Values afterwards if you want.
 
Upvote 0
1. Select column A till end of data.
2. F5
3. Special...
4. Blanks
5. OK
6. Type in A3: =A2
7. Ctrl+Enter
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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