+ Reply to Thread
Results 1 to 6 of 6

Converting excel to .txt file and having superscript or subscript show differently

  1. #1
    Registered User
    Join Date
    02-04-2016
    Location
    Virginia, United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Converting excel to .txt file and having superscript or subscript show differently

    I am trying to convert an excel file into any txt or csv file that will actually show a superscript or subscript differently. Just needs to be some kind of indicator there for me to identify it was truly a special character...

    I briefly looked at some Unicode and this may be the answer but not sure how to get this to work.

    So if I have the number 2 raised to the 2 power, we would show it as 22 as a superscript in one of the excel blocks. Now if it needs to be some kind of math formula conversion that is fine. I am just trying to convert "22" into something that isn't simply "22" when viewing it as the text file after doing a save-as.

    Basically I am writing a c++ program that takes each data and reads it in a variable and manipulates the data to output something else. The data I am reading is entered into excel by other users but my output will not need to deal with excel. Once I read-in the data...excel is out of the picture. So writing my program in Visual Basic is not the goal.

    If saving as Unicode or some other means has a way of identifying this special character by using unicode or something like 2X2...my program can take this data and handle it the way I need.

    My problem is I want to take a native excel file with no special visual basic/macros...and simply do a save-as with some configuration options possibly?

    If need be, we can enter this superscripts/subscripts in a special manner if need be.

    Thanks in advance for your help.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Converting excel to .txt file and having superscript or subscript show differently

    If you are using a font that supports the unicode numeric superscript characters, you can use the Insert-> Symbol dialog to enter those characters in Excel. You can also access those characters from the Windows "Character map" application to copy characters to the clipboard and paste into Excel. (Windows -> Programs -> usually under accessories -> often in system tools)

    http://unicode.org/charts/PDF/U2070.pdf
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    02-04-2016
    Location
    Virginia, United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Converting excel to .txt file and having superscript or subscript show differently

    This solves my issue but presents a new one.

    When using the "symbol" superscript the number comes in a lot smaller then using the method of:

    1. Type in the number
    2. right click and select format cells
    3. click superscript under "effects"

    I attached the image that shows the size difference. Even when increasing the font of this "symbol" it never really sizes to the original way we do superscripts.

    Is there anyway to match this image. The top number is the way we normally do superscripts. The bottom number is the way the superscript looks when inserting a symbol.


    2016_02_12_15_23_25_test.xlsx_Excel.png

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Converting excel to .txt file and having superscript or subscript show differently

    If you are referring to ASCII text files, then superscripts and subscripts are not supported.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Converting excel to .txt file and having superscript or subscript show differently

    I'm not sure that there is. I know that some fonts are better than others at this (I don't know what font you normally use, but you might compare Verdana with Arial with Calibri). Of course, font information, just like "format 3rd character as superscript" is not stored in a text file, so the font you choose to view with in Excel will not affect the text file you create.

    If it is just a question of aesthetics while entering the data in Excel, I would suggest choosing a font face that you like better. If you need the additional font information to go with the text file, then you will need something more in depth.

  6. #6
    Registered User
    Join Date
    02-04-2016
    Location
    Virginia, United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Converting excel to .txt file and having superscript or subscript show differently

    No I do not need the font to carry over into my txt file. Inserting it as a symbol truly fixes my txt file issue.

    I am only looking at this as an aesthetics situation now. It just looks smaller and someone said they have concerned that its a little too small.

    It just seemed weird that excel is treating the two superscripts differently.

+ 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. Replies: 1
    Last Post: 04-17-2006, 02:04 AM
  2. Losing subscript/superscript! Help!
    By hello_lpc in forum Excel General
    Replies: 3
    Last Post: 02-13-2006, 05:00 PM
  3. [SOLVED] Restore superscript and subscript buttons in Excel toolbars
    By dandc01 in forum Excel General
    Replies: 1
    Last Post: 02-13-2006, 02:50 PM
  4. [SOLVED] superscript/subscript
    By Big Ron in forum Excel General
    Replies: 3
    Last Post: 01-21-2006, 03:50 PM
  5. subscript and superscript buttonsfor Excel 2003?
    By camestres in forum Excel General
    Replies: 1
    Last Post: 08-24-2005, 09:05 AM
  6. [SOLVED] Button for subscript and superscript in Excel
    By ajkarl in forum Excel General
    Replies: 1
    Last Post: 05-24-2005, 07:02 PM
  7. Subscript & Superscript
    By Karen in forum Excel General
    Replies: 6
    Last Post: 02-22-2005, 07:06 PM
  8. [SOLVED] Is there a shortcut key for subscript or superscript in excel?
    By Brady in forum Excel General
    Replies: 3
    Last Post: 02-01-2005, 07:06 PM

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