LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change case on Entry


How can I change the case of text typed into a cell as soon as the cell
loses its focus? Basically I have a sheet that requires one to enter
names in a column, first and last. Upon exiting that cell (or it
losing its focus), that data then gets used in the very next cell to
generate a sring consisting of the first 2 letters of the first name
and first 3 letters of the last name. What I need to do is make sure
the case is proper before I use the data in the next cell.

Correct input in A1: Jack Doppler
Resulting text in A2: JaDop

Wrong input in A1: jACk dOPplEr
Resulting test in A2: JaDop

Either I figure out a way to fix the text that they just typed in as
soon as the cell loses its focus (preferred), or I fix the resulting
string when it gets created, AND fix the text in A1 at the same time.

For reference, cell A2 contains the following formula:

Code:
--------------------
=IF(ISBLANK(A1),0,CONCATENATE(MID(TRIM(A1), 1, 2), MID(TRIM(A1), FIND(" ", TRIM(A1)) + 1, 3)))
--------------------
....which checks whether A1 is empty before doing anything. Then it
creates the string.


--
AMK4
------------------------------------------------------------------------
AMK4's Profile: http://www.excelforum.com/member.php...o&userid=19143
View this thread: http://www.excelforum.com/showthread...hreadid=501933

 
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
Validate data but then change the entry to upper case Ephraim Excel Worksheet Functions 4 March 20th 10 06:04 PM
change data of entire column from small case to upper case Ann Excel Worksheet Functions 1 August 16th 08 01:06 PM
How do I change the case of text in more than one entry at a time Molly Excel Discussion (Misc queries) 2 June 7th 06 01:08 AM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM
automatically change text case on entry John Davies Excel Discussion (Misc queries) 2 July 15th 05 08:42 AM


All times are GMT +1. The time now is 02:15 AM.

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

About Us

"It's about Microsoft Excel"