How to replace data with other data in two columns without accounting empty cells

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I hope the title makes somewhat sense, but allow me to elaborate. I have a setup like this:

1667376718299.png


I want my numbers in column D to replace whatever value is in column B

However, if I mark all of column D and move it other to column B it will say the following:

1667376765182.png


If I say yes to this, I end up with this result:


1667376782577.png


How do I do this without deleting the values that are already in cell B1:B3, B6 and B8?

I realize that I can do this by individually moving each number in column D to replace the value in column B, but it would take forever :(

Thank you all!

Best regards,
Jyggalag
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Use this in E1 and drag down. Then you can use those to paste over B1:B10.

=IF(D1<>"",D1,B1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,937
Messages
6,175,525
Members
452,651
Latest member
wordsearch

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