Copying Data from cells above

Shazz

Board Regular
Joined
Oct 28, 2010
Messages
136
I want to fill cells in a column with data (PRI134/18) Can anyone advise how I can do this as when dragging the cells down it changes the last two digits to 19, I want the number sequence before the / to change to i.e PRI135/18, PRI136/18 and so on.

Your help is appreciated.

Shazz
x
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You can use this vba script:

It will enter the values into column (1)

You did not say when you want to stop.

So a Inputbox will ask you how many times.

Code:
Sub Fill_Down_Now()
'Modified  10/17/2018  5:16:26 PM  EDT
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Dim ss As Long
ss = 134
Dim ans As Long
ans = InputBox("How many times")
    For i = 1 To ans
        Cells(i, 1).Value = "PRI" & ss + i & "/18"
    Next
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Just a possible formula solution. A2 dragged down.

Excel Workbook
A
2PRI134/18
3PRI135/18
4PRI136/18
5PRI137/18
6PRI138/18
7PRI139/18
8PRI140/18
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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