Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Issue with PROPER function

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Issue with PROPER function

Provide some Addresses as Sample.

--------------------
(Ms-Exl-Learner)
--------------------


"Mustang" wrote:

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Issue with PROPER function

Once you apply PROPER() function. Copy the cellsright
clickPasteSpecialValues and paste it to the same location to convert the
formulas to values. Then select the cells

Hit Ctrl+H to Find Replace....check Match Case

Find
'Po ' (P0 followed by a space)

Replace with
'PO ' (PO followed by a space)

If PO is within the text then try find ' Po ' and replace with ' PO '


OR try the below formula

=IF(ISNUMBER(FIND(" PO "," " & A1)),TRIM(REPLACE(" " & PROPER(A1),
FIND(" Po "," " &PROPER(A1)),4," PO ")),PROPER(A1))

--
Jacob


"Mustang" wrote:

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Issue with PROPER function

On Wed, 16 Dec 2009 17:53:02 -0800, Mustang
wrote:

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks


How are you handling 2-letter state abbreviations?
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Issue with PROPER function

Hi Ron,

We are NZ based so dont have the 2 letter state abbreviation.

Thanks

"Ron Rosenfeld" wrote:

On Wed, 16 Dec 2009 17:53:02 -0800, Mustang
wrote:

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks


How are you handling 2-letter state abbreviations?
--ron
.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Issue with PROPER function

Brilliant, the formula works perfectly!

Many thanks

"Jacob Skaria" wrote:

Once you apply PROPER() function. Copy the cellsright
clickPasteSpecialValues and paste it to the same location to convert the
formulas to values. Then select the cells

Hit Ctrl+H to Find Replace....check Match Case

Find
'Po ' (P0 followed by a space)

Replace with
'PO ' (PO followed by a space)

If PO is within the text then try find ' Po ' and replace with ' PO '


OR try the below formula

=IF(ISNUMBER(FIND(" PO "," " & A1)),TRIM(REPLACE(" " & PROPER(A1),
FIND(" Po "," " &PROPER(A1)),4," PO ")),PROPER(A1))

--
Jacob


"Mustang" wrote:

Hi there,

I have the following problem:

I am attempting to clean up some addresses using the PROPER function. This
works really well until I come to PO Box numbers.

My problem is that this makes PO Po.

I also have entries such as P O

Any suggestions on how I can do the following:
Make the rest of the address proper and not the PO part and also cater for
keeping P O as is.

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Issue with PROPER function

On Thu, 17 Dec 2009 16:28:01 -0800, Mustang
wrote:

Hi Ron,

We are NZ based so dont have the 2 letter state abbreviation.

Thanks


OK, if all you have to deal with is the Po issue, and if your PO is always
preceded and followed by <space, then:

=SUBSTITUTE(PROPER(A1)," Po "," PO ")

should work.

It works whether or not PO is in the original string.
--ron
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
PROPER FUNCTION ACE PRODUCTS Excel Worksheet Functions 5 July 12th 07 01:38 AM
PROPER function Danielle via OfficeKB.com Excel Worksheet Functions 2 October 14th 05 09:50 PM
How do I use the PROPER function? Lynn in Tulsa Excel Worksheet Functions 6 August 15th 05 07:36 PM
PROPER function MISTY66 Excel Worksheet Functions 1 March 3rd 05 10:16 PM
How do I use the PROPER function? kp Excel Discussion (Misc queries) 3 December 30th 04 01:44 PM


All times are GMT +1. The time now is 05:20 PM.

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

About Us

"It's about Microsoft Excel"