Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Substitute function yields #VALUE! when add the instance_number

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Substitute function yields #VALUE! when add the instance_number

Hmmm...

Works ok for me in Excel 2002.

A couple of alternatives:

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

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


--
Biff
Microsoft Excel MVP


"Bob F" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Substitute function yields #VALUE! when add the instance_number

On Thu, 29 Nov 2007 11:09:01 -0800, Bob F
wrote:

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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Substitute function yields #VALUE! when add the instance_numbe

Ron,
Many thanks, that worked.

"Ron Rosenfeld" wrote:

On Thu, 29 Nov 2007 11:09:01 -0800, Bob F
wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Substitute function yields #VALUE! when add the instance_numbe

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

"T. Valko" wrote:

Hmmm...

Works ok for me in Excel 2002.

A couple of alternatives:

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

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


--
Biff
Microsoft Excel MVP


"Bob F" wrote in message
...
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






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Substitute function yields #VALUE! when add the instance_number

"Ron Rosenfeld" wrote in message
...
On Thu, 29 Nov 2007 11:09:01 -0800, Bob F
wrote:

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


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

--
Biff
Microsoft Excel MVP


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Substitute function yields #VALUE! when add the instance_number

On Thu, 29 Nov 2007 17:55:58 -0500, "T. Valko" wrote:

"Ron Rosenfeld" wrote in message
.. .
On Thu, 29 Nov 2007 11:09:01 -0800, Bob F
wrote:

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


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
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Substitute function yields #VALUE! when add the instance_number

"Ron Rosenfeld" wrote in message
...
On Thu, 29 Nov 2007 17:55:58 -0500, "T. Valko"
wrote:

"Ron Rosenfeld" wrote in message
. ..
On Thu, 29 Nov 2007 11:09:01 -0800, Bob F

wrote:

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


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


I never would have suspected transition formula evaluation.

I'll keep that in my memory bank!

--
Biff
Microsoft Excel MVP


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
Substitute Function Question #2 Krista Excel Discussion (Misc queries) 5 April 13th 07 07:54 PM
Substitute function [email protected] Excel Discussion (Misc queries) 1 January 29th 07 07:48 PM
similar function for SUBSTITUTE in excel? neb Excel Discussion (Misc queries) 3 September 8th 06 10:46 AM
Case function substitute Mariano Excel Discussion (Misc queries) 2 January 6th 06 04:15 PM
Replace or Substitute for COMBIN function Jaja Excel Discussion (Misc queries) 6 January 1st 06 02:18 PM


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

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

About Us

"It's about Microsoft Excel"