Discussion Locked

Excel automating next line

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have many excel workbooks, say from 10 to 30 colums across, and many rows, and some colums are formulas and some are input fields.

Rather than always having to copy the next 10 rows or so of formulas, and having empty rows , I would like that when I complete a row of input, at the end it would automatically copy the formulas down to the next row.

7 replies

by chitosunday

Just complete all your data down the row without the formula. Then in the first formula row, put your cursor down right which will make your cursor thinner, then double click the thin cursor. It will automatically copy the first formula down . Note that this will only be applicable to continuous data at your left. If there is a space, it will stop there.

by chitosunday

Just complete all your data down the row without the formula. Then in the first formula row, put your cursor down right which will make your cursor thinner, then double click the thin cursor. It will automatically copy the first formula down . Note that this will only be applicable to continuous data at your left. If there is a space, it will stop there.

by borg7of9

I tried this, maybe I didnt do it right, but it didnt work. However, even if it did work, there is data between cells with formulas.

I can simply copy the forulas, but the person entering the data is not good with excel, I wanted to make say a macro, where it would simply copy the formulas down one. I just dont know how to do it, or if there is a better way

by chitosunday

If you want a macro put this in a the sheet code by right clicking the tab sheetname below left.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim xrange As Range
If Target.HasFormula Then
Application.EnableEvents = False
If Target.Column > 1 Then
Set xrange = Target.Offset(0, -1).End(xlDown).Offset(0, 1)
Range(Target, xrange).FillDown
Application.EnableEvents = True
End If
End If
End Sub

by sir.gsm

I think what u need is, after u input the data in a row, u want that excel will automatically creates another row with the same formula... until you finished inputting?
And if you dont want to add another data to add in a row, excel will not create a row with formula in it?

I dont think this can be create but, chitosunday is right just use the FILL HANDLE to copy the formulas for each column. Lock these formula so that no body could erase or edit this formula of yours.

This discussion is closed to new replies.