Excel formula with Dynamic file name static sheet name - excel-formula

=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?

Related

VBA function with particular excel sheet, not the workbook

I have 1 particular excel sheet and a bunch of other excel workbooks with raw data.
That particular excel sheet works as a template for data analysis, so I copy-paste that sheet to a raw-data excel workbook to undertake analysis on that raw data.
Problem is that when I'm pasting the template sheet to the others, I need to change the reference every single time because the analysis is done referencing the sheet that contains row data. Also, sheet name is unique on
every workbook.
I tried the below VBA code but it's attached to the workbook rather than the template sheet itself, so I can't just create a copy of that sheet to a raw data excel workbook.
Function NxtShtNm() As String
Application.Volatile
NxtShtNm = ActiveWorkbook.Sheets(ActiveSheet.Index + 1).Name
End Function
Could I get any advice on above?
Thanks!

How to add a workbook sheet into another workbook

Here is the excel "db" and excel "scrape".
And I want to achieve like this, add the sheet "scrap" into excel "db", i.e. four sheets in the same excel (scrap, ai, bd, and eb).
Copying sheets from one workbook to another is not hard to be solved. You will only need a Excel Application Scope and a Copy Sheet activity:
So all you need is the file path where the source Excel is. And the destination Excel file path. And the name of the sheet.

I want to copy data of a specific columns (by using column headers) from one workbook to another workbook using VBA Macro

I am new to VBA Macros. I just know how to copy cells/columns from one worksheet to another sheet and one workbook to another workbook.
I don't know how to copy data "using column headers" (need total column values) from one workbook to another workbook.
Could someone please help me in this regard.
Excel looks like below and I want to copy data by using headers "Job Name & Job Status") to another workbook
Joboutput details
Location
Date
Job Name Job Number Job Status
aaa
bbb

How to Copy Paste Formula in Excel But Skip 1 Cell

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

link 200 worksheets in different wokbooks at once using vba

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,

Resources