#1   Report Post  
AMK
 
Posts: n/a
Default substitute

How can I substitute each instance of "B" in a range (B4..g22) with the value
in
Column A same row as the Corresponding "B". Not all cell in range have the "B"

Al
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

With VBA

For Each cell In Range("B2:G22")
If cell.Value = "B" Then
cell.Value = Cells(cell.Row,"A").Value
End If
Next cell

--
HTH

Bob Phillips

"AMK" wrote in message
...
How can I substitute each instance of "B" in a range (B4..g22) with the

value
in
Column A same row as the Corresponding "B". Not all cell in range have the

"B"

Al



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
Is there a VLOOKUP substitute when data is not in ascending order VJ7777 Excel Worksheet Functions 2 January 19th 05 08:32 AM


All times are GMT +1. The time now is 02:00 PM.

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

About Us

"It's about Microsoft Excel"