New Contributor

# Spill Error with named ranges on a table

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

# Re: Spill Error with named ranges on a table

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.

# Re: Spill Error with named ranges on a table

@Sergei Baklan Hours and Rate are named ranges

# Re: Spill Error with named ranges on a table

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

# Re: Spill Error with named ranges on a table

@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.

# Re: Spill Error with named ranges on a table

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.

# Re: Spill Error with named ranges on a table

@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 .

# Re: Spill Error with named ranges on a table

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.