ChooseCols Function to a different file, troubleshooting

ellison

Active Member
Joined
Aug 1, 2012
Messages
343
Office Version
  1. 365
Platform
  1. Windows
Hi,

Hi, I'm trying to use the CHOOSECOLS function in Excel, selecting info from a different file. But the array only returns expected results when the "target" file is open..
If the target file is closed, it returns a bunch of zeros....

Preview-1 = the file:

choose-column-array-formula.xlsx
A
10
Sheet1
Cell Formulas
RangeFormula
A1:B6A1=CHOOSECOLS('K:\Formul&Instructions\Mr-Excel-questions\033-choose-column-external-array\[dummy-info.xlsx]Sheet1'!$A$1:$E$6,1,2)
Dynamic array formulas.


Preview-2: the table of the results when the target file is closed:

00
00
00
00
00
00


Preview-3: the table of the results when the target file is open:

H-1H-2
alphaone
betatwo
charliethree
deltafour
echofive


Things I've tried checking:
-only 1 instance of excel is open - yes
-both files are open & closed via Excel rather than windows explorer - yes
-the trust center settings for the location are a yes - yes
-the cells are not locked - yes


I've got feeling it may be something to do with my Excel settings as opposed to the actual choosecols function?!

Also did a windows update this week & I'm spotting this warning message coming up which I haven't often seen before:


1705077118872.png

Any idea what I can check next?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I don't think choosecols works with closed files, but if you only wan the 1st 2 columns you can just use
Excel Formula:
='K:\Formul&Instructions\Mr-Excel-questions\033-choose-column-external-array\[dummy-info.xlsx]Sheet1'!$A$1:$B$6
 
Upvote 0
Solution
Crumbs I didn't reaslist that, I've been cheerfully littering that new choosecols function around all day until I spotted a couple of gremlins..............!
Thanks coming back so quickly Mr Fluff, much appreciated
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,131
Messages
6,123,223
Members
449,091
Latest member
jeremy_bp001

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
Back
Top