mickeystanford_alumni
Board Regular
- Joined
- May 11, 2022
- Messages
- 129
- Office Version
- 2021
- Platform
- Windows
- MacOS
Hi all,
I have an excel file of 16,000KB. It is not huge but it goes really slow...
I would like to know how to improve the efficiency of the file (I already have file in manual, so need something more sophisticated).
I have a bunch of power queries connected through a dynamic path (this slows down the file for sure, but I need it as I do create a summary report by bringing different sheets from different excel files here...so maybe there is a way to improve the efficiency here)?
The code I use on the advanced editor is this:
let
ParametersTable = Excel.CurrentWorkbook(){[Name="ParametersTable"]}[Content],
UserName = ParametersTable{0}[Column1],
FilePath = "C:\Users\" & UserName & "\xxxxxx.xlsm",
Source = Excel.Workbook(File.Contents(FilePath), null, true),
// Specify the sheet to import
xxx = Source{[Item="xxx",Kind="Sheet"]}[Data]
in
xxx
Then the rest is I have some indirect formulas linked to Name Manager columns (e.g. $F8,$G8,$H8 is a column called SALES.US.CARS) =SUMIFS(INDIRECT(TEXTJOIN(".",TRUE,$F8,$G8,$H8)),INDIRECT(TEXTJOIN(".",TRUE,$F8,$G8,$H$2)),DATE($I8,M$6,1))
Is there any recommendation?
Thank you very much .
I have an excel file of 16,000KB. It is not huge but it goes really slow...
I would like to know how to improve the efficiency of the file (I already have file in manual, so need something more sophisticated).
I have a bunch of power queries connected through a dynamic path (this slows down the file for sure, but I need it as I do create a summary report by bringing different sheets from different excel files here...so maybe there is a way to improve the efficiency here)?
The code I use on the advanced editor is this:
let
ParametersTable = Excel.CurrentWorkbook(){[Name="ParametersTable"]}[Content],
UserName = ParametersTable{0}[Column1],
FilePath = "C:\Users\" & UserName & "\xxxxxx.xlsm",
Source = Excel.Workbook(File.Contents(FilePath), null, true),
// Specify the sheet to import
xxx = Source{[Item="xxx",Kind="Sheet"]}[Data]
in
xxx
Then the rest is I have some indirect formulas linked to Name Manager columns (e.g. $F8,$G8,$H8 is a column called SALES.US.CARS) =SUMIFS(INDIRECT(TEXTJOIN(".",TRUE,$F8,$G8,$H8)),INDIRECT(TEXTJOIN(".",TRUE,$F8,$G8,$H$2)),DATE($I8,M$6,1))
Is there any recommendation?
Thank you very much .