MikeKlausing
6 years agoQrew Assistant Captain
Formula to add numbers and display in a list
I have 4 numeric fields that I need to 1, add together and 2, display in a vertical list only if they exist. If they dont exist I want it to be collapsed.
The formula I have got to complete the second part is:
"<span style=\"font-size:11px;\">" &
"<b>" &
var text VerticalList =
(List
("<br />$",
ToText(([Cost Notes])),
ToText([Note 2 Cost]),
ToText([Note 3 Cost]),
ToText([Note 4 Cost])));
If($VerticalList <> "",
"$"
& $VerticalList)
& "</b>"
& "</span>"
To get a value of 0 to not show up though in this list I have to uncheck " treat as 0" in those fields.
The problem im running into is then I cant add them into one total cost because ive unchecked treat as 0.
But if I checkmark that my list displays, lets say Note 4's costs as $0 which I dont want.
------------------------------
Mike Klausing
------------------------------