substitute

G

Guest

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
 
B

Bob Phillips

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top