ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Fix Excel'S Proper() So It Won'T Miscapitalize Contractions (https://www.excelbanter.com/excel-worksheet-functions/65489-fix-excels-proper-so-wont-miscapitalize-contractions.html)

RPellessier

Fix Excel'S Proper() So It Won'T Miscapitalize Contractions
 
It'S Just My 2-Cent'S Worth, But I Think
Excel'S Proper() Function Does A Bad Job With Its
Handling Of Contractions And Possessives. For A 2nD
Example, Look What It Does To 2Nd And 3Rd!

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

Harlan Grove

Fix Excel'S Proper() So It Won'T Miscapitalize Contractions
 
"RPellessier" wrote...
It'S Just My 2-Cent'S Worth, But I Think
Excel'S Proper() Function Does A Bad Job With Its
Handling Of Contractions And Possessives. For A 2nD
Example, Look What It Does To 2Nd And 3Rd!

....

There are work arounds for contractions and possessives,

=TRIM(SUBSTITUTE(SUBSTITUTE(PROPER(x)&" ","'S ","'s "),"'T ","'t "))

As for ordinals, no easy fix without regular expressions, but you kinda
deserve this problem for not using Second or Third.




All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com