Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Place Valuse in Cell depanding on another

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Place Valuse in Cell depanding on another

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Place Valuse in Cell depanding on another

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Place Valuse in Cell depanding on another

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding descrete valuse Steve M Excel Worksheet Functions 3 October 25th 06 04:49 PM
How to find valuse in cells. kodzirko Excel Worksheet Functions 1 July 6th 06 12:27 PM
excluding valuse from an average toot033 Excel Discussion (Misc queries) 2 April 11th 06 01:41 PM
Selecting valuse from a table Dave Excel Discussion (Misc queries) 2 September 16th 05 05:28 AM
Insert a value based on unique valuse in a row John Fevens Excel Programming 2 January 30th 04 05:04 PM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"