Merged Cells & Paste Special (Bug)

ccoleman

Board Regular
Joined
Dec 2, 2005
Messages
70
I wasn't sure if this would be the right forum to post this but there's a slight bug in excel, if you have 2 or more columns merged and you paste special -> formula into those merged cells it will write the value to the individual cells instead of giving you an error or writing to the "single" merged cell. This can cause your sum() formulas to count the values in the merged cell twice.

I like to think the lesson here is to avoid having formulas/computational values in merged cells, but I may be slightly biased here.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I wouldn't really call that a bug and I wouldn't say you are being biased against merged cells.

I think if you search this forum you'll find that the general consensus is that merged cells are just a bad idea.:evil:

They can cause problems like the one you've described, and working with them with code can't just be a nightmare.:)
 
Upvote 0
The lesson here is to avoid using merged cells whenever possible! They can wreak havoc with things like VBA and sorting too. Most Excel programmers (like myself) avoid them like the plague!

Usually, you can use the "Center Across Selection" formatting to get the same effect without all the issues.
 
Upvote 0
It was a company affiliated with ours that came up with this and their contact with Microsoft said they're working on a hot fix as I believe all paste special commands are suppose to error with merged cells. I think it's funny that my exact response was, and they're using merged cells why? I've always been very VBA heavy in my sheets and so I avoid them basically 100% of the time but I know people will use them because they understand them more but I'm still unsure what they would ever be copying a formula into a merged cell for, I just really can't see any logical reason for it.
 
Upvote 0
I can't see a logical reason for using merged cells at all, not for formulas and definitely not for code.:)
 
Upvote 0

Forum statistics

Threads
1,225,482
Messages
6,185,262
Members
453,283
Latest member
Shortm88

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