Summing data and applying parenthesis to negative value.

I need to sum 3 pieced of data, subtract a value and then show the value in a parenthesis for any that equal a negative value.

I have seen a post about this formula, but how do I use this with the the other sum function:

=VALUE(MID(ColumnName@row, 2, 10))

My formula:

=SUM([Financials 2]@row:[Financials 4]@row) - [Financials 1]@row


Thanks- Kristi

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    Lets try wrapping the math part in the middle of the text string in parenthesis so that it calculates before converting to a text string.


    =IF(SUM([Financials 2]@row:[Financials 4]@row) - [Financials 1]@row>= 0, SUM([Financials 2]@row:[Financials 4]@row) - [Financials 1]@row, "(" + (SUM([Financials 2]@row:[Financials 4]@row) - [Financials 1]@row) + ")")

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!