PC Review


Reply
Thread Tools Rate Thread

how do i use format cells to alpha / numeric values

 
 
Samvid69
Guest
Posts: n/a
 
      1st May 2010
HAVE A STRING OF DATA i WANT TO ENTER into a cell, but I also want to set
format to set the values. eg. if I put in asd123 I want it to appear as
ASD123 but there are also occasions when I will put in a different mix of
letters/numbers a12s3d, which I also want to come out as A12S3D. I can do
this in Access but cant seem to crack the code in excel.

Please help.

 
Reply With Quote
 
 
 
 
L. Howard Kittle
Guest
Posts: n/a
 
      1st May 2010
Try =UPPER(E2)

HTH
Regards,
Howard

"Samvid69" <(E-Mail Removed)> wrote in message
news:701E3143-A79D-4FDE-8661-(E-Mail Removed)...
> HAVE A STRING OF DATA i WANT TO ENTER into a cell, but I also want to set
> format to set the values. eg. if I put in asd123 I want it to appear as
> ASD123 but there are also occasions when I will put in a different mix of
> letters/numbers a12s3d, which I also want to come out as A12S3D. I can do
> this in Access but cant seem to crack the code in excel.
>
> Please help.
>



 
Reply With Quote
 
ozgrid.com
Guest
Posts: n/a
 
      1st May 2010
Right on the sheet name tab and choice View Code and paste in the code below
after modifying the range to suit.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub

On Error Resume Next
If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End If
On Error GoTo 0

End Sub



--
Regards
Dave Hawley
www.ozgrid.com
"Samvid69" <(E-Mail Removed)> wrote in message
news:701E3143-A79D-4FDE-8661-(E-Mail Removed)...
> HAVE A STRING OF DATA i WANT TO ENTER into a cell, but I also want to set
> format to set the values. eg. if I put in asd123 I want it to appear as
> ASD123 but there are also occasions when I will put in a different mix of
> letters/numbers a12s3d, which I also want to come out as A12S3D. I can do
> this in Access but cant seem to crack the code in excel.
>
> Please help.
>


 
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
Sorting Alpha-Numeric Values =?Utf-8?B?NjktZXI=?= Microsoft Excel Charting 0 4th Aug 2006 01:50 PM
Sorting Cells With Alpha Numeric Values =?Utf-8?B?NjktZXI=?= Microsoft Excel Charting 0 31st Jul 2006 06:27 PM
Extract alpha and numeric values itty Microsoft Excel Worksheet Functions 4 30th Aug 2004 08:55 PM
Re: Seperate Alpha Numeric values Douglas J. Steele Microsoft Access VBA Modules 0 31st Mar 2004 08:42 PM
Seperate Alpha Numeric values Elwin Microsoft Access VBA Modules 0 31st Mar 2004 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 PM.