#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default ascii conversion

I am trying to do an ASCII conversion of a string of 11 numeric
characters into 22 numeric characters. When I use the conversion in
Excel, it only converts the 1st character in the string. Is there a
way to have it convert all 11 characters into one string of 22
characters?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,986
Default ascii conversion

Could you post an example of what your are doing?

" wrote:

I am trying to do an ASCII conversion of a string of 11 numeric
characters into 22 numeric characters. When I use the conversion in
Excel, it only converts the 1st character in the string. Is there a
way to have it convert all 11 characters into one string of 22
characters?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default ascii conversion

Would a UDF function do?

If so try:

Public Function StringIt(Number) As String
Dim Temp As String
Dim x As Integer
Application.Volatile

For x = 1 To Len(Number)
Temp = Temp & Asc(Mid(Number, x, 1))
Next x

StringIt = Temp
End Function

With you original string in A1 enter:

=StringIt(A1)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


wrote in message
oups.com...
I am trying to do an ASCII conversion of a string of 11 numeric
characters into 22 numeric characters. When I use the conversion in
Excel, it only converts the 1st character in the string. Is there a
way to have it convert all 11 characters into one string of 22
characters?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default ascii conversion

I have a someone sending me information with account numbers in it (a
simple example: 143). What I need to do is convert that to ASCII.
When I use the Excel conversion, it only converts the first number. I
need it to convert all 3 and display them in a continuous string, in
this case being 495251. Right now, Excel is only displaying 49,
representing only the first character of the account number.

JLGWhiz wrote:
Could you post an example of what your are doing?

" wrote:

I am trying to do an ASCII conversion of a string of 11 numeric
characters into 22 numeric characters. When I use the conversion in
Excel, it only converts the 1st character in the string. Is there a
way to have it convert all 11 characters into one string of 22
characters?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27,285
Default ascii conversion

=CODE(MID(A1,1,1))&CODE(MID(A1,2,1))&CODE(MID(A1,3 ,1))

--
Regards,
Tom Ogilvy




wrote in message
oups.com...
I have a someone sending me information with account numbers in it (a
simple example: 143). What I need to do is convert that to ASCII.
When I use the Excel conversion, it only converts the first number. I
need it to convert all 3 and display them in a continuous string, in
this case being 495251. Right now, Excel is only displaying 49,
representing only the first character of the account number.

JLGWhiz wrote:
Could you post an example of what your are doing?

" wrote:

I am trying to do an ASCII conversion of a string of 11 numeric
characters into 22 numeric characters. When I use the conversion in
Excel, it only converts the 1st character in the string. Is there a
way to have it convert all 11 characters into one string of 22
characters?





Reply
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
Save Excel to ASCII format Aaron Z Excel Discussion (Misc queries) 2 July 26th 06 08:46 PM
ASCII to Numeric Conversion cincode5 Excel Discussion (Misc queries) 2 August 4th 05 07:25 PM
How do I convert excel file into ASCII text file with alignment? Rosaiah Excel Discussion (Misc queries) 2 June 27th 05 12:17 PM
Curency Conversion Dilemma Michael Excel Worksheet Functions 5 May 27th 05 02:28 PM
Excel - Rendering ASCII via ASP/JScript DMoe Charts and Charting in Excel 1 March 10th 05 06:19 AM


All times are GMT +1. The time now is 07:51 PM.

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

About Us

"It's about Microsoft Excel"