Forum Discussion
MarkShnier__You
6 months agoQrew Legend
This is a formula from Sharon Faust, the QuickBase Junkie
var text SALES = If(IsNull([Total]),"","$" &
Part(ToFormattedText(abs([Total]),"comma_dot",3),1,".") & "." &
PadRight(Part(ToText(abs([Total])),2,"."),2,"0"));
var text COL = If([Total]<0,"Red");
"<span style='" &
"color:" & $COL & ";" &
"display:block;" &
"text-align:right;'>" &
$SALES &
"</span>"