PC Review


Reply
Thread Tools Rate Thread

Convert Case

 
 
ordnance1
Guest
Posts: n/a
 
      3rd Mar 2010
My original post seems to have disappeared so here is a repeat.

I have to clean up a spreadsheet by converting the text in cells A6:B11999
to uppercase text. These cells contain text only. Is there a quick way to
accomplish this?
 
Reply With Quote
 
 
 
 
PY & Associates
Guest
Posts: n/a
 
      3rd Mar 2010
D6=upper(A6)
highlight D6
drag to E6
highlight D6:E6
drag to E11999


On Mar 3, 3:22*pm, "ordnance1" <ordnan...@comcast.net> wrote:
> My original post seems to have disappeared so here is a repeat.
>
> I have to clean up a spreadsheet by converting the text in cells A6:B11999
> to uppercase text. These cells contain text only. Is there a quick way to
> accomplish this? *


 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      3rd Mar 2010
Since you have posted this query in Excel Programming group; I assume you
expect a VBA solution. You can try out the below macro. If you are new to
macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()>


Sub Macro()
Dim cell As Range
For Each cell In Range("A6:B11999")
If cell.Text <> "" Then cell.Value = UCase(cell.Text)
Next
End Sub

--
Jacob


"ordnance1" wrote:

> My original post seems to have disappeared so here is a repeat.
>
> I have to clean up a spreadsheet by converting the text in cells A6:B11999
> to uppercase text. These cells contain text only. Is there a quick way to
> accomplish this?
> .
>

 
Reply With Quote
 
keiji kounoike
Guest
Posts: n/a
 
      3rd Mar 2010
I would write some short macro. For example,

Sub Lower2Upper()
Dim rng As Range
Set rng = Range("A6:B11999")
rng.Value = Evaluate("=if(upper(" & rng.Address & ")<>"""", upper(" & _
rng.Address & "),"""")")
End Sub

This would take some time, but only you need is just to wait to be done.

Keiji

ordnance1 wrote:
> My original post seems to have disappeared so here is a repeat.
>
> I have to clean up a spreadsheet by converting the text in cells
> A6:B11999 to uppercase text. These cells contain text only. Is there a
> quick way to accomplish this?

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      3rd Mar 2010
This macro should be nicely efficient...

Sub MakeUpperCase()
Dim Cell As Range, CellRange As Range, FirstAddress As String
Set CellRange = Range("A6:B11999")
Set Cell = CellRange.Find("*", SearchDirection:=xlNext)
If Not Cell Is Nothing Then
FirstAddress = Cell.Address
Do
Cell.Value = UCase(Cell.Value)
Set Cell = CellRange.FindNext(Cell)
Loop While Cell.Address <> FirstAddress And Not Cell Is Nothing
End If
End Sub

--
Rick (MVP - Excel)


"ordnance1" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My original post seems to have disappeared so here is a repeat.
>
> I have to clean up a spreadsheet by converting the text in cells A6:B11999
> to uppercase text. These cells contain text only. Is there a quick way to
> accomplish this?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert lower case index entry tag to upper case? =?Utf-8?B?WXVyaSBJdmFub3Y=?= Microsoft Word Document Management 3 31st Jul 2006 10:55 PM
excel'03 how to convert a column from upper case to proper case =?Utf-8?B?c2hhcmllIHBhbG1lcg==?= Microsoft Excel Misc 1 30th Jan 2006 11:50 PM
Convert lower case charecters to upper case =?Utf-8?B?RGluZXNo?= Microsoft Excel Misc 3 10th Sep 2005 12:59 PM
Convert Lower Case Chars to Upper Case Dino Buljubasic Microsoft VB .NET 2 18th Apr 2005 08:20 PM
How do you convert upper case to lower case in outlook =?Utf-8?B?bWRhbmwyMDAw?= Microsoft Outlook Discussion 1 20th Oct 2004 10:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 AM.