Excel Formula to convert existing text to all CAPS

gail321

New Member
Joined
Jan 10, 2011
Messages
2
How can I use a formula to convert the text in an existing document to all capital letters?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
It says I am creating a circular reference when i use the UPPER formula and changes the value of the cell to 0. Any suggestions?
 
Upvote 0
Sorry you will need to put that formula in sheet 2 cell a1 with the formula looking at cell a1 in sheet 1. You can then copy paste special as values and format to create a copy in upper case.
 
Upvote 0
Or you could insert a new column A, put the formula (=UPPER(B1)) in A1. Copy down column A, Copy column A & PasteSpecial (as Values) and then delete column B.

Hope it helps.
 
Upvote 0
Or you could select the column of interest and run UpperSelection:
Code:
Sub UpperSelection()
    UpperIt Intersect(Selection, ActiveSheet.UsedRange)
End Sub
 
Sub UpperIt(r As Range)
    With r
        .Value = Evaluate("if(row(), upper(" & r.Address & "))")
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,592
Members
449,089
Latest member
Motoracer88

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