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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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