Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

Change Case in a column

 
Jump to:  
 
Joe
PostPosted: Wed Aug 13, 2008 4:22 am    Post subject: Change Case in a column
       
i have a sheet with multiple columns.

on one column i have a mix of upper case, proper case and lower case cells.l
uppercase.

i need to be able to change the case of words is larger than 5 characters to
lower case in this column. i don't want to change any of the Proper case
cells.

any suggestions?
 

 
Billy Liddel
PostPosted: Wed Aug 13, 2008 7:21 am    Post subject: RE: Change Case in a column
       
Joe

You will need a helper column. you can then paste the values over the
original data.
Assuming that the column is A use:

=IF(EXACT(A2,PROPER(A2)),A2,IF(LEN(A2)<=5,A2,UPPER(A2)))

However note:

Going for a Song GOING FOR A SONG
christmas carol CHRISTMAS CAROL
Going For A Song Going For A Song

the first Going for a song is not fully Proper so converts to Upper.

Peter Atherton
"Joe" wrote:

Quote:
i have a sheet with multiple columns.

on one column i have a mix of upper case, proper case and lower case cells.l
uppercase.

i need to be able to change the case of words is larger than 5 characters to
lower case in this column. i don't want to change any of the Proper case
cells.

any suggestions?
 

 
Don Guillett
PostPosted: Wed Aug 13, 2008 10:08 am    Post subject: Re: Change Case in a column
       
Sub changecaseif()
mc = "c"
For i = 1 To Cells(rows.Count, mc).End(xlUp).Row
If Len(Cells(i, mc)) > 5 Then Cells(i, mc) = LCase(Cells(i, mc))
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
"Joe" <Joe@discussions.microsoft.com> wrote in message
news:C43840C2-DEBF-4E93-B4CE-9A79BF70B42A@microsoft.com...
Quote:
i have a sheet with multiple columns.

on one column i have a mix of upper case, proper case and lower case
cells.l
uppercase.

i need to be able to change the case of words is larger than 5 characters
to
lower case in this column. i don't want to change any of the Proper case
cells.

any suggestions?
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

lektury Oferty pracy za granicÄ… Free History Books Zakopane Konferencje Rapidshare