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

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
422
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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