i have 2 workbooks and every workbook contain 200 sheets, i want to make link between for example cell E7 in sheet 1 in workbook1 and cell D3 in sheet1 in workbook2 and so on till sheet 200- the link is for the same cells E7& D3 - i want a code to loop between the sheets and paste special link instead of doing this manually one by one.
Thank you
You can create links to another Excel Workbook using worksheet formula as detailed in ( http://office.microsoft.com/en-us/excel-help/create-an-external-reference-link-to-a-cell-range-in-another-workbook-HP010102338.aspx ): sample follows
=SUM('C:\Reports\[Budget.xlsx]Annual'!C10:C25)
You can automate the process of inserting the links using the Range.Formula with Excel VBA.
Hope this will help. Rgds,
Related
I have multiple sheets in a workbook and I need to run some specific formulas on each sheet. one of my sheet with the formulas can be accessible via below URL.
https://drive.google.com/file/d/1G4wTgeV_mnWH4qsiVRGy97JKbOlugej2/view?usp=sharing
the Formulas are in four Columns AP till AS. And I want to run the same formula in same columns in each sheet. I have 300 sheets so I am looking for a quick option.
Please can someone help me to find the best way to run this on my all sheets.
Regards,
Haris
I am working on my report using WPS Office Excel (it is almost same like Microsoft Excel), I have 2 sheet For example, My report sheet is called "Report" and my data sheet is called "Data".
In my "Report" sheet I need to copy paste formula like this
from Cell AP12
=((+Data!BK12*$P$11)+(Data!BL12*$Q$11))/$R$11
To Cell AQ12, I need the Cell AQ12 to become like this
=((+Data!BM12*$P$11)+(Data!BN12*$Q$11))/$R$11
But when I copy paste here's what happen in cell AQ12
=((+Data!BL12*$P$11)+(Data!BM12*$Q$11))/$R$11
Can
=(offset(+Data!BK12;;-2+ROWS(A$1:A1)*2;;)*$P$11)+(offset(+Data!BL12;;-2+ROWS(A$1:A1)*2;;)*$Q$11))/$R$11
=INDIRECT(ADDRESS(65,20,1,1,VLOOKUP(C$4,FILELOCATION,2,FALSE)&C$4&$B$2&".XLS"))
I created the formula above to pull info from a source workbook into a summary workbook. Source file name will be dynamic plus I will have 10 source files to pull into the summary workbook.
This formula works when the cell T65(65,20) is in Sheet1 of the workbook.
How do I alter the formula to pull from sheets other than Sheet1? I am trying to pull data from Sheet6 which is called Budget Export.
I don't know macros so this is why I am trying to stick with formulas.
Any suggestions?
I admit to not being very technical and my limit up to now has been using paste links to connect data between sheets. I now have a requirement I cannot figure out.
I have 2 workbooks I wish to automate sharing data between.
Workbook 1 contains multiple rows of data manually entered.
I need a button against each row so when it is pressed data from certain cells on that row in Workbook 1 are transferred to cells within a worksheet in workbook 2
I would be very grateful for any guidance on how to achieve this.
Many thanks!
Though you can deploy VBA to achieve this, but the same is also possible with simple formula like.
=[1.xlsx]Sheet1!$A$1
Lets say you have two workbooks 1.xlsx and 2.xlsx and you want sheet1/column A1 value from 1.xlsx to be auto populated in sheet1/column A1 in 2.xlsx, you can simply link it with a formula like =[1.xlsx]Sheet1!$A$1 in second workbook 2.xlsx.
So as soon as some entry is done in first cell, second cell is auto populated
However if you are looking only for vba solution do write back
I have a workbook with two sheets. The first is full of data and calculations, the second is mostly cells with references to the first sheet. The second sheet also concatenates strings, and references to cells in the sheet, to form SQL commands used elsewhere.
There is also a second workbook (soon to be more). It has a sheet identical to the first sheet of the other workbook, except with different data. The problem I'm having is that the new workbook needs a sheet similar to the second of the original workbook (sorry if this is sounding confusing). I would like to simply duplicate the sheet and its formulas, which I tried using the 'move or copy...' option. Unfortunately, the formulas in the cells reference the first sheet from the old workbook, like this: =[foobar.xlsx]data!A1. Way too much data to remove them by hand. I can't just redo the formulas because I had to remove a lot of specific lines from the second sheet, so dragging the formula would not match up correctly. I'm currently trying to hack this together with REPLACE but if anyone can offer help it would be greatly appreciated.
CLARIFICATION:
When I copy the sheet, a formula will appear as =[foobar.xlsx]data!A1. I want it to just be data!A1.
Thanks :)
I hope this answers your problem, but I am a little unclear on your need!!!
Highlight all cells in the worksheet.
Perform a replace to replace = with say '=
This stops the formulas "being formulas"
Copy the sheet.
Perform another replace on the new sheet to replace '= with =
This converts back to formulas, referring to cells in your new workbook.