I have a macro set up to automatically fill all of the cells in certain columns with the top cell's formula in that column. This is so I don't have to go through and manually "fill down" the formulas into the blank cells after I insert a row into my database. The problems is, though, that the macro sometimes takes a long a** time to run (and uses up a TON of memory...the doc. was 29,000 kb at one point!) because of the amount of rows & columns I have (approx. 5000 row & 34 columns) just one one sheet.
Anyway, is there a way to set up something in VBA to have it auto fill in the formulas in the columns I choose, after I insert a row, with the information that preceeds it?
So, for example, if I insert a row anywhere in my database, excel will know right away that I want that row filled w/ the formulas from the row above it.
I can't seem to get the fill handle "+" sign to give the correct amounts when I want to copy a formula down a column. It seems to skip every 2nd row with the wrong amount or sometimes it will give a 0.00 sign.
I have a function =TimeSinceIns(3) in cell K3. Where the 3 represents the row number. I would like to fill the function all the way down to cell k100. And be able to do this reguarly. Unfortunately when I use the fill handle it leaves 3 as 3 when I want it to be changing to the appropriate row no. Ie in cell k4 would be =TimeSinceIns(4) and so on.
I am trying to copy a countif formula down a column using the fill handle, but when I copy the formatting down the column the range changes. Is there a way to make it so that only the variable changes and the range stays the same?
Pre-requisite: I would consider myself to be very poor with excel, based on what I've read on this forum and found on my web-searches. I have a worksheet that has a list of data on the left going vertically, then a summary of this data going horizontally across the top. It is not arranged in such a way that transposing the data will do what I want. I am pulling the 5th word out of the title of each block of the vertical data and need to show this word on the horizontal section.
When I use this formula to pull the 5th word: =MID(MID(MID(SUBSTITUTE(A2," ","^",4),1,256), FIND("^",SUBSTITUTE(A2," ","^",4)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A2," ","^",4),1,256),FIND("^",SUBSTITUTE(A2," ","^",4)),256))-2)
I need to increase A2 to A30, then A58 (up by 28 every time) in every instance in that formula. The fill handle increases the values by 1, instead of 28 (even if I do 3 or 4 instances manually) How do I do this? I've run into this problem in other scenarios, and there HAS to be a way to get around it.
I currently have this code ( which works perfect ) that was written by someone else. It performs an auto-fill in column "A".
I need to learn how to adjust this code to do it for other columns, but do not know currently.
Maybe someone could highlight of BOLD the adjustments to direct the code to the column.
Sub fill_rows_A_4() Dim arrTmp As Variant Dim lngRow As Long With Worksheets("sheet1") 'adapt arrTmp = .Range(.Cells(1, 1), .Cells(.Rows.Count, 1).End(xlUp)) For lngRow = 1 To UBound(arrTmp) If arrTmp(lngRow, 1) = "" Then arrTmp(lngRow, 1) = arrTmp(lngRow - 1, 1) Next .Range(.Cells(1, 1), .Cells(UBound(arrTmp), 1)) = arrTmp End With End Sub
Working with 2 worksheets in the same spreadsheet. In worksheet A cell F6 is a solution (hex2dec) these solutions are staggered consistently in column F (F6, F9, F12, F15 etc) In worksheet B cell A2 displays workshop A cell F6 details (=ATR!F6) Worksheet B cell A3 Autofil uses (=ATR!F7) I want (=ATR!F9) Worksheet B cell A4 I want (=ATR!F12) How do I condition autofil to follow my chosen sequence ie F6,F9,F12,F15 etc...
I am trying to figure out how to auto-fill a range. I am summing a range from one tab to another, like A1:A5. I want to autofill the subsequent cells to begin with the cell that follows the last of the previous range, so it would autofill as A1:A5, A6:10, A11:15, etc. how to do this?
I created a database and made one small mistake doing it. The database is infinite amount of rows down and my formula needs to be corrected as such. In the current cells: (C1:C1000) i have the formulas referencing cells $B1, but i need it to reference $B$1. In C2 I need it to reference $B$2, C3 $B$3 and so on. If I autofill, it obviously just keeps the following cells at $B$1 and i can't keep the dollar bill sign.
I use this code to start at the the top of the column going down, but the way my data is setup, I need it to start at the bottom and work up.
Sub fillBlanksI() 'Declare variables Dim FR As Long, LR As Long, i As Long, FillVal As Variant 'Stop screen flicker and speed up code Application.ScreenUpdating = False 'Find the last row of any column in the sheet LR = ActiveSheet.UsedRange.Rows.Count 'Loop from row i downwards until we find a value - this is the first filled row and assign its value to FillVal
i have just finished filling out a 2000 line spreadsheet, on this spread sheet i had a customer number i then had to look up the customer number on our old database to retrieve the address for the customer. Is there any way that for future spreadsheet's i can input the customer number and it will auto fill the address of that customer ?
the columns on my sheet are: customer A/C number Customer Name Customer Address line 1 Customer Address line 2 Customer Address line 3 Postcode
it would save me hours and hours of time digging through the database again.