Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If C2 is blank then put value of B2 into C2 otherwise
leave C2 as it is. All data type are the same. Can anyone help me with this please. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
With Range("C2") If IsEmpty(.Value) Then .Value = .Offset(0, -1).Value End With In article , "Gerry" wrote: If C2 is blank then put value of B2 into C2 otherwise leave C2 as it is. All data type are the same. Can anyone help me with this please. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many Thanks for this.
Now I want to replicate this down the column. Can you assist. Gerry -----Original Message----- One way: With Range("C2") If IsEmpty(.Value) Then .Value = .Offset(0, - 1).Value End With In article , "Gerry" wrote: If C2 is blank then put value of B2 into C2 otherwise leave C2 as it is. All data type are the same. Can anyone help me with this please. . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Dim rCell As Range For Each rCell in Range("C2:C" & _ Range("C" & Rows.Count).End(xlUp).Row) With rCell If IsEmpty(.Value) Then .Value = .Offset(0, 1).Value End With Next rCell In article , "Gerry" wrote: Many Thanks for this. Now I want to replicate this down the column. Can you assist. Gerry -----Original Message----- One way: With Range("C2") If IsEmpty(.Value) Then .Value = .Offset(0, - 1).Value End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding descrete valuse | Excel Worksheet Functions | |||
How to find valuse in cells. | Excel Worksheet Functions | |||
excluding valuse from an average | Excel Discussion (Misc queries) | |||
Selecting valuse from a table | Excel Discussion (Misc queries) | |||
Insert a value based on unique valuse in a row | Excel Programming |