Proper and Substitute

superfb

Active Member
Joined
Oct 5, 2011
Messages
255
Office Version
  1. 2007
Platform
  1. Windows
Hi all

How can I combine a Proper and substitute formula together?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

Just encapsulate Substitute into Proper ...

=Proper(substitute(xx,yy,zz))

HTH
 
Upvote 0
I tried that. The proper formula doesn't work when combining
 
Upvote 0
Tested with
Code:
=PROPER(SUBSTITUTE("old McScrooge had a farm","McScrooge","McDonald"))
Works like a charm.

What is the complete formula you are trying to use?
 
Upvote 0
Ill presume its the fact that substitute is case sensitive so you need to build that into your thoughts. This type of thing removes case then turns it into proper case afterwards:

=PROPER(SUBSTITUTE(LOWER("OLD McScrooge HAD A farm"),LOWER("mcscrOOGe"),"mcDOnald"))
 
Last edited:
Upvote 0
I am removing the spaces in the text so proper doesn't operate as it sees it as one word
 
Upvote 0
I am removing the spaces in the text so proper doesn't operate as it sees it as one word

This is exactly why you have to include the formula/code you're using together with an explanation of what you are trying to accomplish

Finalfight40's formula will do the job for you.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top