#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Substitute

Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Substitute

Thanks Glenn, that worked!

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?



=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Substitute

Is it possible to do 3 criteria?

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?



=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Substitute

is it possible to then sum the substitution results?

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?



=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Substitute

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?



=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Substitute

Yes, you can nest additional SUBSTITUTE() functions. Just replace "Master!G3"
in the existing formula with another complete SUBSTITUTE() function.


Trish wrote:
Is it possible to do 3 criteria?

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?


=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Substitute

To change the result from text into a number, precede the calculation with "--":

=--SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)


Trish wrote:
is it possible to then sum the substitution results?

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?


=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Substitute

Thanks for this answer and the other... still having trouble since I've got
some cells where there is no change because it has nothing in it so if I use
"--" I get a value problem but I think I can fix that.

"Glenn" wrote:

To change the result from text into a number, precede the calculation with "--":

=--SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)


Trish wrote:
is it possible to then sum the substitution results?

"Glenn" wrote:

Trish wrote:
Help! :) I am using a workbook where in sheet 3 I'm looking at sheet 2 to see
if a value exists "x" in a column -- if it exists, I want to replace that
value "x" with a value found in sheet 1 "4" -- I was able to create that
formula as follows:

=SUBSTITUTE(Master!E3,"x",'Curriculum Duration Estimates'!$D$5)

However, I also want to look for value "i" in sheet 2 and if it exists,
replace in sheet 3 value "i" with a value found in sheet 1 "1". I can't get
that formula to work, I tried:

=(SUBSTITUTE(Master!G3,"x",'Curriculum Duration
Estimates'!$E$7))*OR(SUBSTITUTE(Master!G3,"i",'Cur riculum Duration
Estimates'!$G$7))

Any ideas?

=SUBSTITUTE(SUBSTITUTE(Master!E3,"i",'Curriculum Duration
Estimates'!$D$5),"x",'Curriculum Duration Estimates'!$G$7)


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(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
Substitute mrbalaje Excel Discussion (Misc queries) 2 March 15th 07 07:47 AM
More than 7 IF? any substitute? Jean Excel Worksheet Functions 4 March 9th 07 05:41 AM
SUBSTITUTE Steved Excel Worksheet Functions 4 June 2nd 06 06:51 PM
Using &Chr$(39)& as substitute for ' in VBA Paul987 Excel Discussion (Misc queries) 4 March 15th 06 02:48 PM


All times are GMT +1. The time now is 02:43 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"