Home

.xlsb file crashes when I use offset, table[#data] and table[#headers] to create dynamic drop downs

%3CLINGO-SUB%20id%3D%22lingo-sub-556198%22%20slang%3D%22en-US%22%3E.xlsb%20file%20crashes%20when%20I%20use%20offset%2C%20table%5B%23data%5D%20and%20table%5B%23headers%5D%20to%20create%20dynamic%20drop%20downs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-556198%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20creating%20dynamic%20drop%20downs%20by%20assigning%20a%20dynamic%20name%20range%20using%20offset%20and%20the%20table%20syntax%20against%20two%20tables%20and%20the%20file%20corrupts%20every%20time%20when%20the%20second%20dynamic%20drop%20down%20name%20range%20is%20set.%20Once%20the%20file%20is%20closed%20I%20cannot%20open%20it%20again%20with%20Excel%202016%20prompting%20the%20file%20is%20corrupt.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKeen%20for%20some%20guidance%20whether%20it's%20something%20I%20am%20not%20doing%20right%20or%20it's%20an%20Excel%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-556198%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-567949%22%20slang%3D%22en-US%22%3ERe%3A%20.xlsb%20file%20crashes%20when%20I%20use%20offset%2C%20table%5B%23data%5D%20and%20table%5B%23headers%5D%20to%20create%20dynamic%20drop%20do%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-567949%22%20slang%3D%22en-US%22%3EWhy%20the%20dynamic%20range%20name%2C%20tables%20make%20names%20pointing%20to%20their%20columns%20dynamic%20without%20having%20to%20use%20any%20functions%20in%20the%20name.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-568022%22%20slang%3D%22en-US%22%3ERe%3A%20.xlsb%20file%20crashes%20when%20I%20use%20offset%2C%20table%5B%23data%5D%20and%20table%5B%23headers%5D%20to%20create%20dynamic%20drop%20do%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-568022%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3BBecause%20the%20table%20of%20an%20uneven%20height%20(column%201%20having%20data%20down%205%20rows%20and%20column%202%20having%20data%20down%207%20as%20an%20example)%20will%20give%20you%202%20empty%20cells%20in%20when%20you%20assign%20column%201%20of%20the%20table%20in%20your%20drop%20down.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-568080%22%20slang%3D%22en-US%22%3ERe%3A%20.xlsb%20file%20crashes%20when%20I%20use%20offset%2C%20table%5B%23data%5D%20and%20table%5B%23headers%5D%20to%20create%20dynamic%20drop%20do%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-568080%22%20slang%3D%22en-US%22%3EIf%20that%20is%20so%2C%20convert%20your%20table%20to%20a%20range%20(Right-click%2Cb%2Cv).%20Also%2C%20use%20INDEX%20instead%20of%20the%20volatile%20OFFSET.%3C%2FLINGO-BODY%3E
VCh3n
New Contributor

Hi,

 

I have been creating dynamic drop downs by assigning a dynamic name range using offset and the table syntax against two tables and the file corrupts every time when the second dynamic drop down name range is set. Once the file is closed I cannot open it again with Excel 2016 prompting the file is corrupt.

 

Keen for some guidance whether it's something I am not doing right or it's an Excel issue.

 

Thank you.

3 Replies
Why the dynamic range name, tables make names pointing to their columns dynamic without having to use any functions in the name.

@Jan Karel Pieterse Because the table of an uneven height (column 1 having data down 5 rows and column 2 having data down 7 as an example) will give you 2 empty cells in when you assign column 1 of the table in your drop down.

If that is so, convert your table to a range (Right-click,b,v). Also, use INDEX instead of the volatile OFFSET.
Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
201 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies