Search and replace string in formula with string from cell

I

Ingar

Hi!
Say I have a formaula in a cell like this:


="This year is"&" "&Year(2003)

I would than like to put in a cell, like A2, a number like
2004

Is it then possible by search and replace to have (2003)
replaced by the value in A2?

The formula is just a example in this case not an actual
formula.

I hope someone can give me a tip on this

Thanks
Ingar
 
T

Tom Ogilvy

Yes

Replace what 2003
Replace with A2

Only select a range that contains cells that you want changed (if there is a
chance of 2003 appearing where you don't want it changed).
 
T

Tom Ogilvy

Sorry - misunderstood what you wanted. I thought you wanted the formula
being changed to refer to cell A2 rather then have a hard coded value.

No, you have to put the string literal in the Replace with textbox in the
Replace dialog.
 

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