Copying data into merged cells

henryg

Board Regular
Joined
Oct 23, 2008
Messages
116
Office Version
  1. 365
Platform
  1. Windows
This is (slightly) different from a similar topic about a year ago I found here.

If I copy data from a single cell, say, C1 into E1 which is a cell merged with F1, all seems to work ok. But if I try to copy C1:C3 into E1:E3 in a single block copy, the data copies across into E1:E3 but F1:F3 become demerged and the data replicated there. Anything other than copying a single cells "fails" in this way.

Any way of preventing this?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

henryg

Board Regular
Joined
Oct 23, 2008
Messages
116
Office Version
  1. 365
Platform
  1. Windows
That’s the answer I pretty much expected, and my opinion too but it’s not my spreadsheet in this case. Centre Across Selection not viable in this case though.

Confirmation appreciated though.
 

StephenCrump

MrExcel MVP
Joined
Sep 18, 2013
Messages
4,353
Office Version
  1. 365
Platform
  1. Windows
I don't know if VBA is a possible workaround? For the scenario you quoted, this will work as you intended:

Range("E1:E3").Value = Range("C1:C3").Value
 

henryg

Board Regular
Joined
Oct 23, 2008
Messages
116
Office Version
  1. 365
Platform
  1. Windows
In this particular case, I can't predict what block of cells will be copied and it adds a potential complication that is best avoided given the likely users. The best solution will be for me to find a way to get rid of the merged cells which is acceptable to the 'owner'.

Thanks again.
 

Forum statistics

Threads
1,148,277
Messages
5,745,818
Members
423,980
Latest member
zimza

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
Top