Copying Formulas (autofill The Reference Number Jumps By 3)
Mar 17, 2009
I have 2 sheets in a workbook where i would like cell G8 on sheet 1 to equal the value on A11 sheet 2 & G9 to equal A12 and so on down the sheet. The problem is that G8 are 3 merged cell so every time I try to use autofill the reference number jumps by 3. The formula in cell G8 is
I have a series of formulas in Row 1 across the columns in worksheet A. I would like to copy these formulas to a single column and down rows in worksheet B while retaining the references to worksheet A. I know that I can manually enter the references in worksheet B but that would take a long time to do.
In file named (Book 1) I have a lots of tabs named e.g. pd1 pd2 pd3 etc.
In another file (Book 2) I need to link cell A1 (on Sheet 1) to cell A1 on pd1 (in Book1)
Which I can do fine.
In Book 1 I want to autofill the formula i have that refers to A1 on Pd1 but when I drag it I want the formula to go up in a series to refer to Pd2, Pd3.
So the final formula looks at $A$1 on Pd1 then on Pd2 Pd3.
I have over 9,000 rows of data. In column A, I have different values that I need to populate down to associate with values in other columns. I can't simply autofill all 9,000 cells in column A at once, because the values that need to be filled down change at irregular intervals.
My end goal is to be able to filter out values in column B to show their association with the value in column A, but I need column A fully populated.
So I need a way to fill A2:A7 with value from A1 (I don't care about B7 being empty, I can still have Martha in A7 with no adverse affects). But I need the fill to continue through 9,000+ rows where the number of rows to fill is inconsistent between value changes in column A (Martha-5, Sarah-3, Beth-4, Donna 3), and there are over 400 unique values in column A.
This is definitely more involved than I am familiar with, but any simple way for me to identify and list which of the 400 bakers made scones..
My Table has a data validation list in one row of a table. And different formulas in different rows.
The Table is expanded only into columns. Which means, there will be no new rows...only columns will be added.
If we enter text into the header cell in a new column, the whole new column gets formatted, but the list and formulas do not auto fill into new columns.
Of course an easy way is to copy and paste a column...but is there a way to auto fill lists and formulas into columns of the table? Similar to how the rows get autofilled?
I have one Worksheet Short Course - PB's Which contains all swimmer information and searches through all previous swims and reports back the swimmers current Personal best times (PB)
I am creating a work sheet to calculate percentage increases over a set date period. I have managed the calculations but can not get the autofill to function as I was hoping.
In my short course sheet 1 Row = a Swimmer and there details
In my new sheet, I have 3 rows for the same swimmer
Row 1= Swimmer and PB's before a set date Row 2 = Swimmer and PB's After set date and upto Todays date Row 3 = Percentage calculation of difference between the two rows to enable track performance increase
I have all of this working and in place and want to copy the formula's down now to cover all swimmers in the club.
When I copy the 3 lines down, Autofill adds 3 to the row reference for the first line and I just want it to add 1.
I'm working on a decision matrix to evaluate different alternative production methods. Before that criteria have to be choosen and weighted against each other. The user would fill out the yellow/ blue cells with (0=less important; 1=equally; 2=more). Then values are added up and put into some kind of ranking.
The example was done by hand, which costs a lot of concentration. I would now like to extend the matrix - do you know how to fill out the grey cells more efficiently?
I have a basic formula =C17+'Asset Depreciation 2008 Onwards'!C24, and I want to copy it down just using the drag function. Problem is that the second reference range of cells are in rows and hence when I copy it down it doesn’t automatically update the cell references because it want to update them by column number instead of row number. IE I want it to display =C17+'Asset Depreciation 2008 Onwards'! D24, instead of C25. Do you know if there is any way of telling Excel that I want it to increase the column number by 1 every time, instead of the row number for this part of the formula?
I have attached the file. The row being copied is row "X" for both buttons. I have 2 buttons in the same worksheet to copy a row and insert the copied row below it. I have this macro running for 2 different rows in the worksheet, assigned to the respective 2 buttons. See my code below.
I wanted to see if it is possible to copy a table from one sheet to another sheet, but only the values of the cells, without the formulas in it. As there has to be a different calculation in the new table, when the calculations are done, the numbers go all crazy in the Row that has a formula in it.
This is the code I have got so far: Sub Copy_fromSheetinMA() Dim CellValue As Range Sheet2.Range("Table1").Copy Destination:=Sheet1.Range("Table2") For Each CellValue In Range("D2:CW50") CellValue.Value = (CellValue.Value) * (135) Next CellValue End Sub
When I insert a row in my table (below the headers, which are between rows 1 and 4), I want the formulas from the above row (or below row) to be copied down to my newly inserted row. I say "below row" as well in case I want to insert a new first row and want the formulas in the row underneath to be copied up.
I am working on a file that has multiple worksheets with many links, lookups and formulas; some between the worksheets and some external to another Excel file. The plan is to use this file as a template and copy it over and over with new names. Once I save the file as a new name in a new folder on my network, will I lose all these links, lookups and formulas? Or is there a way to maintain the links or do a global change of the formulas (i.e., the original file name is "TEMPLATE" and the new file name is "PROJECT!1")?
I have set up a table and for ease of explanantion Column C has a formulas in it to add together the values found in Column A and B.
EG C3 foumula = "=sum(A3+B3)"
Now in cols d & e I have manually entered figures and in colum F I want to add up those figures so F3 should read "=sum(D3+E3)"
In the past I have always been able to just copy the cell C3 and paste it into F3 and the formula would automatically copy and offset the various cells to the correct cells for the new posiitoning.
However, for some reason when I copy the cell, it now pastes the value only into the pasted cell and does not copy the formula, if I click on paste special to try to just copy the formula I now get a pop up asking me if I want to paste as Unicode Text or Text.
I have a spread sheet that I have locked with the expection of certain cells. I also have left the ability to insert and delete rows. The cells that are locked have functions in them run in sequance.
Is there a way that when the new row is inserted its copies the formula from the row above automatically but also adjust for the new row and adjusts the rows below it automatically?
For example if I insert a new row between rows 2 and 3 below. (orginal layout) a1 (unlocked) b1 (locked)(function is =sum(a1:b1) a2 (unlocked) b2 (locked)(function is =sum(a2:b2) a3 (unlocked) b3 (locked)(function is =sum(a3:b3) a4 (unlocked) b4 (locked)(function is =sum(a4:b4)
(layout after inserting row) a1 (unlocked) b1 (locked)(function is =sum(a1:b1) a2 (unlocked) b2 (locked)(function is =sum(a2:b2) a3 (unlocked) b3 (unlocked) *inserted row* a4 (unlocked) b4 (locked)(function is =sum(a4:b4) a5 (unlocked) b5 (locked)(function is =sum(a5:b5)
this is what i want the end product to be. (layout if formulas are copied and adjusted after inserting row) a1 (unlocked) b1 (locked)(function is =sum(a1:b1) a2 (unlocked) b2 (locked)(function is =sum(a2:b2) a3 (unlocked) b3 (locked)(function is =sum(a3:b3) *inserted row* a4 (unlocked) b4 (locked)(function is =sum(a4:b4) a5 (unlocked) b5 (locked)(function is =sum(a5:b5)
How do I copy a range of cells containing formulas to another range of cells without chaning any of the letter or numbers from the original. I want a mirror copy of whats in A3:B10 to got to D3:E10..
Just a niggling problem, I've got lstRow as a Long and it contains the value of the last row offset by (1, 0). The problem is i'm trying to add it into a range
Like that.. Except i've tried a million different combinations of " and & in different places to try and get it to compile. It refuses too. It always gives the error "Expected list seperator or )" I know I could just do it individually from C to K but I'd like to learn how to do it this way as well.
I have a spreadsheet with a lot of financial information going down a column (about 500 rows down). Most of the cells are just typed in, but certain rows have sum formulas in them. Is it possible to copy values from another workbook, paste the values in, but somehow keep the formulas that are running through?
I'm working on a spreadsheet that tracks project accepted and done over a course of time. I am expecting the data to eventually reach the thousands in a year's time. I have several formulas in specific columns that I need to replicate as the user enters new data into the next row.
While it is easy to copy paste the formulas from the cells above, we are looking to save time by having the sheet do this automatically which also prevents the user from accidentally deleting/modifying the said formulas. I am also looking to save file size which is why I am considering doing this in VB. An example of a formula that I need to move down into the next column is:
I was tired of making my list smaller to upload it here, so I uploaded the complete thing on megaupload :P Here is the link:
http://www.megaupload.com/?d=1W6PBADE
On the bottom of the list is a button; "Add New Anime". When you click on that you get a UserForm where you can enter; Title, Type, Total Episodes, D/L Eps and Watched Episodes. When you press ''Add Anime" the entered values are entered at the bottom of the list, underneath the corresponding list names on the top.
Now there are 4 list names left (Left, Status, Status 2, and Progress (%)) I still have to make a option to enter Status 2 as well in the UserForm.
Now the question:
In columns F (Left), H (Status) and I (Progress (%)) are formulas. How can I copy those formulas automatically when I add something new with the UserForm? And can it automatically insert a new row, since I have to move the buttons down with every new title.
is it possible, after inserting new sheet rows, to automate the copying of formulas and cell formatting into the newly created space, instead of manually copying the formulas and formatting down into each column?
sheet 1 have simple values, for example cell A1:5 Cell A3: 10 Cell A5:15 Cell A7:20 Cell A9:25 Cell A11:30 Cell A13:35 Cell A15:40
In sheet 2 i have the following formulas: Sheet 2 Cell A1: =Sheet1!A1+Sheet1!A3 Sheet 2 Cell A2: =Sheet1!A5+Sheet1!A7
I need to respect this sequence when copying these 2 formulas in the same sheet 2 cell A3, however when I do that I get the following formula: =Sheet1!A3+Sheet1!A5. While i need it to sum up A9 and A11. i.e respect the order of the first 2 formulas.
If I have formulas in A1, A5, A19, and A36, highlight them with goto, how do I move them into B1, B5, B19, and B36? Copying and pasting puts them in B1, B2, B3, and B4.
I need to be able to copy a formula from a row that is 180 rows before the current cell.
I then need to edit the formula so that the rows all start at 6. then i need to change the column references.
The formula that I am editing looks like this after it has been copied from before:
=IF('Entry Form Portrait'!$d870="m",IF('Entry Form Portrait'!$n870="a",'Entry Form Portrait'!$a870,""),"")
So I need d870 to be changed to d6, the n870 to be changed to o6 (current column +1), the a870 to be changed to a6.
Then this resultant formula to be copied to the next column and a6 changed to b6, then copied to next column again and b6 changed to f6.
Then all 3 columns to be copied (or autofilled) down 105 rows.
I tried to do it by recording the macro, however it only works for the first time that i use it, and then just keeps repeating in the same place. I need it to use the cell i have selected as the starting point.
I was kindly provided with a formula from this forum a few months ago (in the attached workbook) to calculate the area under the curve of strings of data of varying length (i.e. different number of rows) these strings of data are aligned with a timeline (providing the Y and X axis for the curve respectively). The formula is able to calculate the area under these curves without the need for adjustment to the number of rows of the dataset.
However I have now tried to copy this formula to a new datasheet with a different total number of rows and a timeline fixed (of different intervals) in column A (rather than moving for each string of data) and I am receiving a #N/A error. I am sure that I have copied the formula correctly. Can anyone help fix my formula so that it calculates area under the curve again? I would like it to calculate the area under the curve for the data in the same column but using the fixed timeline in column A.
The working formula is on the sheet ‘original formula layout’ and the formula containing the error is on the sheet ‘new formula layout’.
On sheet1 I have a list with some employee numbers and other training data. On sheet2 I have a complete list of employee numbers along with the address details. On sheet1 I have a cell using the MATCH formula to pick up the column reference for the address from Sheet2. What I would like to do is use a macro that looks at the column reference in sheet1 and then copies the details from that reference in sheet2 and pastes back to sheet1. The following is what I have tried, but it just doesn't want to work:
Sub selectrange() Set ws = Worksheets("Sheet1") Set wl = Worksheets("ListEmployeeContact") ws.Select ws.Cells(2, 1).Select wl.Select wl.Range(ws.Cells(4, 11), Cells(5, 26)).Copy ws.Select ws.Cells(2, 1).Select ActiveCell.Offset(2, 12).PasteSpecial End Sub