#Spill! error in merged cell

drom

Well-known Member
Joined
Mar 20, 2005
Messages
540
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,221,618
Messages
6,160,870
Members
451,674
Latest member
TJPsmt

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