#Spill! error in merged cell

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and Thanks in advance!!


AZ8 =IF(CELL("width";AX6)>0;"YES";"")
AU8: AAZ8 are merged range of cells

I get #Spill! error

I go to other columns and I put eg in BE7:

BE7=IF(CELL("width";$AX$6)>0;"YES";"")​
I get YES on blank in BE7:BF7​

How can I avoid this ??
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
The "width" parameter of =CELL returns an array of 2 items. The first is the width of the cell defined by reference, and the second is a boolean TRUE or FALSE depending on whether the cell width is the default or not (see CELL function).
An array cannot spill into a merged cell - see #SPILL! error - Spill into merged cell. There is no way around it other than to put the formula somewhere else or unmerge the cells.

Edit: I just played around a bit and you can do it by changing your formula to
Excel Formula:
=IF(@CELL("width";AX6)>0;"YES";"")
which will return only the first element of the array.
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,224,765
Messages
6,180,843
Members
453,001
Latest member
coulombevin

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