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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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?
 
Upvote 0
Hi,

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

HTH
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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