Substitute function yields #VALUE! when add the instance_number

B

Bob F

I'm trying to replace the first "R" with an "E" in the text "RMR-071201".
The text is in cell A47 of an Excel 2003 worksheet.

When I use the formula =SUBSTITUTE(A47,"R","E",1) the result is #VALUE!.
The substitute function works OK when I leave out the instance_number but it
replaces all instances of the "old Text" rather than just the instance I want.

I get this result on both of my home computers but my Excel 2003 at the
office calculates this properly.

I've downloaded and installed all the Office updates that were recommended.

Does anyone know how to fix this?

Bob
 
T

T. Valko

Hmmm...

Works ok for me in Excel 2002.

A couple of alternatives:

="E"&MID(A47,2,255)

=REPLACE(A47,1,1,"E")
 
R

Ron Rosenfeld

I'm trying to replace the first "R" with an "E" in the text "RMR-071201".
The text is in cell A47 of an Excel 2003 worksheet.

When I use the formula =SUBSTITUTE(A47,"R","E",1) the result is #VALUE!.
The substitute function works OK when I leave out the instance_number but it
replaces all instances of the "old Text" rather than just the instance I want.

I get this result on both of my home computers but my Excel 2003 at the
office calculates this properly.

I've downloaded and installed all the Office updates that were recommended.

Does anyone know how to fix this?

Bob

Tools/Options/Transition "Sheet Options" and

DEselect Transition formula evaluation
--ron
 
B

Bob F

Thanks, it turned out that the functions worked on a new workbook and Ron's
solution fixed the old worksheet.
 
T

T. Valko

Ron Rosenfeld said:
Tools/Options/Transition "Sheet Options" and

DEselect Transition formula evaluation
--ron

That took care of it but I don't understand the cause. Care to explain?
 
R

Ron Rosenfeld

That took care of it but I don't understand the cause. Care to explain?

I'm not sure, either. However, the SUBSTITUTE function did not exist in the
earlier versions of Lotus123; and also whenever I see a problem that seems to
work on one machine but not on another, the Transition Formula issue is a
frequent culprit.

But exactly why there should be a difference based on specifying the instance
is not something I can explain.
--ron
 
T

T. Valko

Ron Rosenfeld said:
I'm not sure, either. However, the SUBSTITUTE function did not exist in
the
earlier versions of Lotus123; and also whenever I see a problem that seems
to
work on one machine but not on another, the Transition Formula issue is a
frequent culprit.

But exactly why there should be a difference based on specifying the
instance
is not something I can explain.
--ron

I never would have suspected transition formula evaluation.

I'll keep that in my memory bank!
 

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