Spill Error with named ranges on a table

%3CLINGO-SUB%20id%3D%22lingo-sub-1498134%22%20slang%3D%22en-US%22%3ESpill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498134%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20table%20and%20when%20i%20enter%20%3CSTRONG%3E%3DHours*Rate%3C%2FSTRONG%3E%20it%20returns%20a%20%3CSTRONG%3E%23SPILL!%26nbsp%3B%3C%2FSTRONG%3Ebut%20if%20i%20enter%20the%20same%20outside%20the%20table%20i%20get%20the%20result%2C%20i%20know%20i%20can%20enter%20%3CSTRONG%3E%3D%5B%40Hours%5D*%5B%40Rate%5D%3C%2FSTRONG%3E%20in%20the%20table%20but%20i%20just%20want%20to%20know%20if%20will%20this%20affect%20the%20actual%20mos%20expert%20exam%20as%20in%20the%20tutorial%20they%20are%20getting%20the%20result%20with%26nbsp%3B%3CSTRONG%3E%3DHours*Rate.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1498134%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498178%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498178%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714171%22%20target%3D%22_blank%22%3E%40gillianoleary%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20depends%20on%20concrete%20situation%20-%20are%20Hours%20and%20Rate%20named%20ranges%20or%20columns%20within%20the%20table%20or%2C%20as%20variant%2C%20named%20cells.%20In%20any%20case%20you%20cant%20use%20formula%20which%20return%20the%20spill%20within%20the%20table%2C%20only%20outside%20it%20and%20if%20there%20is%20enough%20space%20for%20the%20spill.%20Within%20the%20table%20second%20formula%20is%20correct%2C%20it%20returns%20result%20for%20the%20current%20row.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498185%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498185%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BHours%20and%20Rate%20are%20named%20ranges%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498196%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498196%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714171%22%20target%3D%22_blank%22%3E%40gillianoleary%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20named%20ranges%20when%20you%20shall%20use%20%3DHours*Rate%20outside%20the%20table.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498265%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498265%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Bso%20you%20cannot%20use%20named%20ranges%20in%20the%20table%3F%3C%2FP%3E%3CP%3Ewas%20it%20the%20case%20that%20you%20could%20use%20named%20ranges%20in%20a%20table%20before%20and%20not%20get%20the%20spill%20error%2C%20I%20am%20just%20wondering%20as%20the%20tutorial%20used%20the%20named%20ranges%20in%20the%20table%20and%20it%20is%20not%20possible%20to%20do%20this%20now.%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20for%20your%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498295%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498295%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714171%22%20target%3D%22_blank%22%3E%40gillianoleary%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENope%2C%20you%20can't%20use%20them%20within%20the%20tables%20for%20the%20Excel%20which%20support%20dynamic%20arrays.%20Perhaps%20tutorial%20is%20bit%20outdated%20and%20for%20previous%20Excel%20versions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1498314%22%20slang%3D%22en-US%22%3ERe%3A%20Spill%20Error%20with%20named%20ranges%20on%20a%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1498314%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Byeah%20it%20must%20be%20and%20thanks%20very%20much%20for%20your%20help%2C%20hopefully%20this%20change%20is%20recognised%20in%20the%20exam%20as%20I%20am%20using%20365%20rather%20than%202016%20.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hey, 

 

I have a table and when i enter =Hours*Rate it returns a #SPILL! but if i enter the same outside the table i get the result, i know i can enter =[@Hours]*[@Rate] in the table but i just want to know if will this affect the actual mos expert exam as in the tutorial they are getting the result with =Hours*Rate. 

 

 

7 Replies
Highlighted

@gillianoleary 

It depends on concrete situation - are Hours and Rate named ranges or columns within the table or, as variant, named cells. In any case you cant use formula which return the spill within the table, only outside it and if there is enough space for the spill. Within the table second formula is correct, it returns result for the current row.

Highlighted

@Sergei Baklan Hours and Rate are named ranges 

Highlighted

@gillianoleary 

If named ranges when you shall use =Hours*Rate outside the table.

Highlighted

@Sergei Baklan so you cannot use named ranges in the table?

was it the case that you could use named ranges in a table before and not get the spill error, I am just wondering as the tutorial used the named ranges in the table and it is not possible to do this now. 

thanks for your help

Highlighted

@gillianoleary 

Nope, you can't use them within the tables for the Excel which support dynamic arrays. Perhaps tutorial is bit outdated and for previous Excel versions.

Highlighted

@Sergei Baklan yeah it must be and thanks very much for your help, hopefully this change is recognised in the exam as I am using 365 rather than 2016 .

Highlighted

@gillianoleary 

If I have understood your situation correctly,

= hours * rate

would only have worked in O2016 because of implicit intersection, which causes the formula to return a sequence of single-cell results.  Trying to enter a multi-cell (CSE) array formula would always have failed.  Now as the defaults have changed in MS365, you could achieve the previous result using

= @hours * @rate

 

Better, I believe, is to use the Table for input data, but then switching to dynamic arrays for calculation.