Formula to copy another cell's contents - Help!

R

Richorton

Is there a formula that will show what the contents of another cell is.

Example

A1 =(B1)
The Value of B1 is 'Test'
Therefore the value of A1 is 'Test'

However if I were to drag Cell B1 to, lets say, C1
The formula in A1 would automatically change to =(C1) and the value would
remain 'Test'.

I want it so the formula in A1 stays as =(B1), no matter if I move the cell

Is this possible?

Many Thanks
 
R

Richorton

Thanks for your speedy response!
I don't suppose there's an easy way to auto fill that formula for the 150
rows I have is there?
 
M

Mike H

Try,

=INDIRECT("B"&(ROW(A1)))

Mike

Richorton said:
Thanks for your speedy response!
I don't suppose there's an easy way to auto fill that formula for the 150
rows I have is there?
 
D

Don Guillett

try this

Sub fillindirect()
For i = 1 To 150
Cells(i, "L").Formula = _
"=indirect(""b" & i & """)"
Next i
End Sub
 
D

David Biddulph

If you have 150 rows worth of data in column B, then just double click on
the fill handle [square black blob at the bottom right-nand corner of the
cell] for cell A1.
Other options:
Grab the fill handle for A1 and drag it down A2 to A150, or
Copy A1, select A2 to A150, Paste.
 

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

Similar Threads


Top