+ Reply to Thread
Results 1 to 15 of 15

Problem superscript in formula

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Problem superscript in formula

    Helle,

    I want to put a superscript in a formula.
    I write :
    =UPPER(RES_RISK_ANALYSIS) & SetSuperScript(1)

    But the result is : RISK_ANALYSIS¹

    How can I have : RISK_ANALYSIS (1) ?

    I can't use parenthesis in superscript with a formula

    I need some help please

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem superscript in formula

    Have you tried passing (1) to the SetSuperScriptFunction?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    Yes I do. but the result missing parenthesis in the superscript...

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem superscript in formula

    Can you post the code for the SetSuperScript function?

  5. #5
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    So, setsuperscript is an Excell function
    more widely, I want to write a formula with a footnote. And the note footer must contain parenthesis.
    For exemple : If I write : = 2 +3 (1)
    I want : 5 (1)
    the problem is that when I test different formula, I get 5 without parenthesis as : 5 1
    While I want parenthesis in superscript.

    Thanks

    Kevin

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem superscript in formula

    setsuperscript() is a function? where is that then ,i've never seen it are you sure its not an UDF?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem superscript in formula

    Kevin

    Where does this function SetSuperScript, UDF or otherwise, come from?

    I'm pretty sure it's no a native Excel function and I can't seem to find it anywhere else.

    PS Have you tried enclosing (1) in quotes?

  8. #8
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    So,I've this function in my Excel. I don't know if it's a native function or not...
    I Try to enclose (1) in quotes but the result is 1 without parenthesis...
    if you have a function that gives the results, it also works.

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem superscript in formula

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  10. #10
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    Please find an example.
    I hope that it will help you.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    does anyone can help me?

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem superscript in formula

    there is no code in that workbook for SetSuperScript()

  13. #13
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    Please find the code.
    But I want a solution without code. As the example in the Excel file

    --------------------------------------------------------
    Function SetSuperScript(x As Integer) As Variant
    Select Case x
    Case 0
    SetSuperScript = ChrW(8304)
    Case 1
    SetSuperScript = ChrW(185)
    Case 2
    SetSuperScript = ChrW(178)
    Case 3
    SetSuperScript = ChrW(179)
    Case 4
    SetSuperScript = ChrW(8308)
    Case 5
    SetSuperScript = ChrW(8309)
    Case 6
    SetSuperScript = ChrW(8310)
    Case 7
    SetSuperScript = ChrW(8311)
    Case 8
    SetSuperScript = ChrW(8312)
    Case 9
    SetSuperScript = ChrW(8313)

    End Select
    End Function
    ---------------------------------------------------


    thank's

  14. #14
    Registered User
    Join Date
    09-25-2014
    Location
    Paris
    MS-Off Ver
    2007
    Posts
    8

    Re: Problem superscript in formula

    Thank you, I find the solution.

    Best regards
    Kevin

  15. #15
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem superscript in formula

    Kevin

    Could you share the solution with us?

    I'm kind of curious about it, and that's kind of like the whole point of forums like this, helping people by sharing knowledge.

+ 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. [SOLVED] Superscript part of a cell containing a formula
    By KJL in forum Excel General
    Replies: 6
    Last Post: 08-09-2019, 08:11 AM
  2. [SOLVED] How to superscript concatenated text (formula) using VBA
    By meprad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2014, 06:37 AM
  3. Superscript the grace marks problem
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2014, 11:06 PM
  4. Superscript part of formula
    By Novio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 08:56 AM
  5. Copy Superscript Formatting in Formula
    By dwhittaker in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-05-2008, 01:17 AM

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