• Setting a format within an expression (2003 sp3)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Setting a format within an expression (2003 sp3)

    Author
    Topic
    #449991

    I am building an expression =IF(A3>A2,(“Gain of ” & (A3-A2)),”Loss”), and I want to format (A3-A2) as currency, how can I do that?

    Viewing 0 reply threads
    Author
    Replies
    • #1104648

      You can use the TEXT function for this:

      =IF(A3>A2,"Gain of "&TEXT(A3-A2,"$#,##0.00"),"Loss")

      • #1104649

        What would I do without my friend from the Netherlands? Works beautifully of course.

    Viewing 0 reply threads
    Reply To: Setting a format within an expression (2003 sp3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: