Indexing on Closed Workbook

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
231
Office Version
  1. 365
Platform
  1. Windows
I have written a path to a closed workbook. However it will run the index unless the file is also open.
The file takes to long to load and needs to stay closed and allow to be searched in the background.

Please help here is the code that shows when the workbook is open.

=IFERROR(INDEX('Copy of Equipment_Active_Outlets.csv'!$C$2:$C$999999, SMALL(IF($C$3='Copy of Equipment_Active_Outlets.csv'!$A$2:$A$999999, ROW('Copy of Equipment_Active_Outlets.csv'!$A$2:$A$999999)-ROW('Copy of Equipment_Active_Outlets.csv'!$A$2)+1), ROW('Copy of Equipment_Active_Outlets.csv'!1:1))),"")

But...
This is what is shows when it is closed:
=IFERROR(INDEX('R:\Targeted Sales\Targeted Sales General\Customer 1\[Copy of Equipment_Active_Outlets.csv]Copy of Equipment_Active_Outlet'!$C$2:$C$999999, SMALL(IF($C$3='R:\Targeted Sales\Targeted Sales General\Customer 1\[Copy of Equipment_Active_Outlets.csv]Copy of Equipment_Active_Outlet'!$A$2:$A$999999, ROW('R:\Targeted Sales\Targeted Sales General\Customer 1\[Copy of Equipment_Active_Outlets.csv]Copy of Equipment_Active_Outlet'!$A$2:$A$999999)-ROW('R:\Targeted Sales\Targeted Sales General\Customer 1\[Copy of Equipment_Active_Outlets.csv]Copy of Equipment_Active_Outlet'!$A$2)+1), ROW('R:\Targeted Sales\Targeted Sales General\Customer 1\[Copy of Equipment_Active_Outlets.csv]Copy of Equipment_Active_Outlet'!2:2))),"")


PLEASE HELP!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

godsaaint

Active Member
Joined
Sep 16, 2016
Messages
285
If the workbook is closed, the formula needs to have the entire path of the file, just as you showed in the second formula. That one is not working?
 
Upvote 0

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
231
Office Version
  1. 365
Platform
  1. Windows
Correct. I do have the path written complete as in the second example but It won't reference the file.
It is giving me the check data and refresh error.

When I do open the file it converts the code to what I first pasted which then works.

I need to avoid opening the file.
 
Upvote 0

godsaaint

Active Member
Joined
Sep 16, 2016
Messages
285
Save the csv file as an excel file (xls) and try again. it should work then. Since csv are basically text and commas, locations may not exist in them.
 
Upvote 0

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
231
Office Version
  1. 365
Platform
  1. Windows
I changed the file to a xlsx and now even entering the path freezes Excel to (Not Responding)
i think the referenced workbook is so large. I can't get passed entering the formula and it freezes and I have to restart each time.
 
Upvote 0

Forum statistics

Threads
1,190,897
Messages
5,983,447
Members
439,843
Latest member
PlanetFitness

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top