Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro in Excel

Status
Not open for further replies.

computerman29651

IS-IT--Management
Joined
Aug 28, 2006
Messages
51
Location
US
Does anyone know how to create a macro or some other way to change the appearance of text in a cell?

For example:

Original:

12HGT-T

Changed To:

12hGT-T
 
So would you like:

All capitol H changed to lower-case h?

Any instance of "HGT" changed to "hGT"?

The third character changed from capitol to lower-case?

The case of the third character changed to whatever is isn't originally?

The first text character changed from capitol to lower-case?

The case of the first text character changed to whatever is isn't originally?

Or one of the many many other possible things that could be represented by your example?
 
I would like the third character changed to lower-case.
 
Other functions to use along with MID are LOWER and REPLACE.


Gavin
 
=LEFT(A1,2)&LOWER(MID(A1,3,1))&RIGHT(A1,LEN(A1)-3)

Regards
Ken............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top