Skip to main content
Question

How to dispay -ve numbers in red color

  • December 18, 2013
  • 0 replies
  • 146 views

I have a numeric field. I want to display all -ve numbers of that field in red color. How can I do so?
This topic has been closed for replies.

  • Registered
  • December 18, 2013
I assume by "-ve" you are referring to negative numbers. This is an uncommon shorthand in the US.

You would use a row colorization formula in the report:

If( [field] < 0, "red")

  • Author
  • Registered
  • December 18, 2013
But I don't want to color the entire row as I have several other numeric fields that may also contain negative number. I only want to color the  negative values. Is that possible?

  • Registered
  • December 18, 2013
Use a text formula field with some HTML allowed and a formula such as this:

If( [field] < 0,
  "<span style='background-color: #EA3C53'>" & ToText([field]) & "</span>",
  [field]
)

  • Author
  • Registered
  • December 18, 2013
Text formula field wouldn't help as I need to summarize the field for reporting.

  • Registered
  • December 18, 2013
Summarize on the original numeric field not the formula.

  • Author
  • Registered
  • December 18, 2013
Then within the summery report is it possible to show the negative numbers in red some how?

  • Registered
  • March 11, 2014
Using the IF statement doesn't seem to work, as the number (difference) is showing as a positive number. How can I get 8-5 to equal -3 instead of 3?