How-to-Formula Copying Numbers from rows to rows

joram7

Board Regular
Joined
May 12, 2005
Messages
115
Book2
ABCD
13091650549
2
34312975094
4
5
6
7
84312975095
9
10
11
124312975096
13
14
15
16
17
18
19
20
21
22
234312975097
24
254312975098
26
Sheet1


As above i need to copy e.g. 3091650549 to A2 then 4312975094
up to A7 then copy 4312975095 up till A11. this will repeat until end of the line.
Is there a macro or formula for this?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Barrie Davidson

MrExcel MVP
Joined
Feb 10, 2002
Messages
2,330
Why not try this:
B1 formula =A1
B2 formula = IF(A2="",B1,A2)
Copy this to the end of data range
Copy column B and paste values to column A.

Does this help you out?
 

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
Hi,

Code:
Sub FillBlanks()
    With Columns(1).SpecialCells(xlCellTypeBlanks)
        .FormulaR1C1 = "=R[-1]C"
        .Value = .Value
    End With
End Sub

HTH
 

Forum statistics

Threads
1,141,663
Messages
5,707,691
Members
421,524
Latest member
Bharath99

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
Top