ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Copy contents of one cell into another if cell is blank (https://www.excelbanter.com/excel-worksheet-functions/252811-copy-contents-one-cell-into-another-if-cell-blank.html)

fire9990

Copy contents of one cell into another if cell is blank
 
How do I copy the contents of cell B2 into cell D2 if D2 is empty

ryguy7272

Copy contents of one cell into another if cell is blank
 
Select Cell B2, Edit Copy, select cell D2, Edit Paste Special Values OK

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"fire9990" wrote:

How do I copy the contents of cell B2 into cell D2 if D2 is empty


Gord Dibben

Copy contents of one cell into another if cell is blank
 
Copy/paste manually.

Or run a macro.

Sub qwert()
With ActiveSheet.Range("D2")
If .Value = "" Then
.Value = Range("B2").Value
End If
End With
End Sub


Gord Dibben MS Excel MVP

On Fri, 8 Jan 2010 08:13:02 -0800, fire9990
wrote:

How do I copy the contents of cell B2 into cell D2 if D2 is empty




All times are GMT +1. The time now is 12:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com