+ Reply to Thread
Results 1 to 10 of 10

Excel value to specific Ascii

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    new york
    MS-Off Ver
    2019
    Posts
    21

    Excel value to specific Ascii

    Hello,

    I'm trying to find to correct formula to get the text from a2 cell to be transformed in ASCII in B2 cell.
    At this time, I'm using an website to get the correct ASCII

    Example

    Word - test
    ASCII - 74,00,65,00,73,00,74,00,

    Word - testing123
    ASCII - 74,00,65,00,73,00,74,00,69,00,6E,00,67,00,31,00,32,00,33,00,

    Can anyone help with the correct formula.
    Thanks,
    John

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Excel value to specific Ascii

    Try, =CONCAT(IFERROR(DEC2HEX(CODE(MID(A1,{1,2,3,4,5,6,7,8,9,10},1)))&",00,","")), ctrl+shift+enter if necessary.

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    new york
    MS-Off Ver
    2019
    Posts
    21

    Re: Excel value to specific Ascii

    got only 74,00

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,720

    Re: Excel value to specific Ascii

    siprian123 is your profile up to date? If not please do so. It helps us help you. If you have a newer version than 2010 there are new functions that might do the job. For example the CONCAT function that josephteh proposed is one of them.
    Dave

  5. #5
    Registered User
    Join Date
    02-24-2016
    Location
    new york
    MS-Off Ver
    2019
    Posts
    21

    Re: Excel value to specific Ascii

    Hi Dave,

    I forgot to update my profile after I purchased a new laptop . Now I have office 2019. Sorry for the inconvenience.

    Thank you for taking the time to look at my post

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,720

    Re: Excel value to specific Ascii

    Thank you for updating.

    You may have to array enter this as josephteh indicates. Drawing on josephteh's idea try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,720

    Re: Excel value to specific Ascii

    Although this is a little shorter and much simpler.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-24-2016
    Location
    new york
    MS-Off Ver
    2019
    Posts
    21

    Re: Excel value to specific Ascii

    I used array for both formulas and the result is a cell with no value

    Final value is

    {=CONCAT(IFERROR(CHAR(HEX2DEC(MID(A1,(ROW(INDIRECT("1:"&LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1))-1)*3+1,2))),""))}

    {=CONCAT(IFERROR(CHAR(HEX2DEC(MID(A1,(ROW(INDIRECT("1:"&(LEN(A1)+1)/3))-1)*3+1,2))),""))}

    I use Microsoft Office Prof Plus 2019 and the ASCII cell is formatted General
    Last edited by siprian123; 11-13-2022 at 08:45 PM.

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Excel value to specific Ascii

    Attached file showing the results.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-24-2016
    Location
    new york
    MS-Off Ver
    2019
    Posts
    21

    Re: Excel value to specific Ascii

    Thank you. I did the changes in your spreadsheet and its working. My files was xlsm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Save/Export ASCII to ASCII file
    By acrobaticgod in forum Excel General
    Replies: 1
    Last Post: 02-07-2012, 05:40 PM
  2. Converting from Excel to ASCII
    By friend11_6 in forum Excel General
    Replies: 1
    Last Post: 07-09-2009, 05:34 AM
  3. saving excel in ascii?
    By jengiss in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2007, 09:14 AM
  4. [SOLVED] Hex to ASCII converter in Excel?
    By Michael_Braganza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2006, 10:15 PM
  5. [SOLVED] ASCII 2 xsl excel table
    By etwas77@googlemail.com in forum Excel General
    Replies: 0
    Last Post: 04-10-2006, 03:20 AM
  6. [SOLVED] Importing to Excel from ASCII
    By Currie in forum Excel General
    Replies: 5
    Last Post: 08-26-2005, 06:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1