SOLVED

Referencing cells from excel workbook to another showing #Ref when master workbook is closed

%3CLINGO-SUB%20id%3D%22lingo-sub-2701031%22%20slang%3D%22en-US%22%3EReferencing%20cells%20from%20excel%20workbook%20to%20another%20showing%20%23Ref%20when%20master%20workbook%20is%20closed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2701031%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%20is%20pretty%20simple%2C%20I%20have%20a%20values%20that%20will%20be%20%3CSTRONG%3Eupdated%3C%2FSTRONG%3E%2C%20so%20I%60m%20referencing%20those%20values%20in%20another%20work%20book.%20What%20I%60m%20doing%20is%20writing%20%3CSTRONG%3E%3DCellName%3C%2FSTRONG%3E%26nbsp%3Band%20it%20worked%20fine%20when%20both%20workbook%20are%20open%2C%20but%20when%20closed%20I%20find%20the%20error%20of%20%23Ref.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHera%20are%20the%20files%20I%60m%20trying%20to%20have%20the%20value%20of%20%3CSTRONG%3Ethis%20period%20column%3C%2FSTRONG%3E%26nbsp%3B%3CEM%3Ep6%20test%3C%2FEM%3E%26nbsp%3Bworkbook%20to%20be%20referenced%20in%20%3CSTRONG%3ELast%20Period%20column%3C%2FSTRONG%3E%26nbsp%3B%3CEM%3Eref%20should%20be%20here%20%3C%2FEM%3Eworkbook%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20master%20workbook%20and%20the%20excel%20workbook%20where%20the%20values%20should%20be%20referenced%20are%20both%20attached.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Excel%20refrencing%20problem.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306871i88618D85A0CE9E72%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Excel%20refrencing%20problem.png%22%20alt%3D%22Excel%20refrencing%20problem.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20help%20is%20very%26nbsp%3Bappreciated%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2701031%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2701563%22%20slang%3D%22en-US%22%3ERe%3A%20Referencing%20cells%20from%20excel%20workbook%20to%20another%20showing%20%23Ref%20when%20master%20workbook%20is%20closed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2701563%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1141923%22%20target%3D%22_blank%22%3E%40BayanMobarak%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20because%20of%20the%20structured%20table%20references.%20See%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Ftopic%2Flinks-to-data-tables-residing-in-external-files-display-ref-d81dc990-e288-0dee-9b07-acb30ac2ccc4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELinks%20to%20data%20tables%20residing%20in%20external%20files%20display%20%23REF!%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20will%20work%3A%3C%2FP%3E%0A%3CP%3E%3DIF('%5Bp6%20test%20without%20dalas%20connection.xlsx%5DSheet1'!C2%3D%22%22%2C2%2C'%5Bp6%20test%20without%20dalas%20connection.xlsx%5DSheet1'!C2)%3C%2FP%3E%0A%3CP%3EWhen%20you%20close%20the%20other%20workbook%2C%20the%20formula%20will%20still%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello Guys,

 

My problem is pretty simple, I have a values that will be updated, so I`m referencing those values in another work book. What I`m doing is writing =CellName and it worked fine when both workbook are open, but when closed I find the error of #Ref.

 

Hera are the files I`m trying to have the value of this period column p6 test workbook to be referenced in Last Period column ref should be here workbook

 

The master workbook and the excel workbook where the values should be referenced are both attached. 

 

 

 

Excel refrencing problem.png

 

Your help is very appreciated 

3 Replies
best response confirmed by BayanMobarak (New Contributor)
Solution

@BayanMobarak 

It's because of the structured table references. See Links to data tables residing in external files display #REF! 

This will work:

=IF('[p6 test without dalas connection.xlsx]Sheet1'!C2="",2,'[p6 test without dalas connection.xlsx]Sheet1'!C2)

When you close the other workbook, the formula will still work.

It worked perfectly , thank you so much!

but can please clarify what changes do you made to make it work?
I can see that we are not referring to the table but to the sheet. What changes should I make next time when I`m working with tables ?

Thanks again bro @Hans Vogelaar

@BayanMobarak 

As the article I linked to in my previous reply states, structured table references to another workbook only work if that workbook is open. So you cannot refer to the table name and column name in the formula. Instead, you have to refer to the worksheet name and the cell reference.