Modifying the Proper function to ignore part of works

bearcub

Well-known Member
Joined
May 18, 2005
Messages
734
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I sometimes have to convert Upper case to proper case in my spreadsheets.

Is there a way to inform Proper to leave certain characters alone (on the fly).

Like words that are have prefixes in front of them (like MacDongual instead of Macdongual, or McConnell instead of Mcconnell). It seems to be happening with Mac or Mc joined with the last names but I image their are other words that are added but I can't think of those off the top of my head.

thank you for your help in advance,

Michael
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Here is a complex a$$ formula I wrote up for McConnel, maybe you can adapt to make it work for a bigger list?

=IF(OR(LEFT(E4,2)="Mc",LEFT(E4,3)="Mc"),LEFT(E4,2)&PROPER(MID(E4,FIND("Mc",E4,1)+2,LEN(E4))),"")

E4= the cell with the name


I sometimes have to convert Upper case to proper case in my spreadsheets.

Is there a way to inform Proper to leave certain characters alone (on the fly).

Like words that are have prefixes in front of them (like MacDongual instead of Macdongual, or McConnell instead of Mcconnell). It seems to be happening with Mac or Mc joined with the last names but I image their are other words that are added but I can't think of those off the top of my head.

thank you for your help in advance,

Michael
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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