The SUBTRACT function returns the difference of all values in the arguments.
SUBTRACT(value1, ...valueN?) - > number
value1
Number/Node reference
The first node or number to be subtracted. This is a required argument.
...valueN?
The additional nodes or numbers to be subtracted. These are optional arguments.
Consider the below example where we have Revenue and expenses data. The objective is to calculate the profit.
Revenue
300
450
367
408
832
671
700
260
572
903
534
Sales
180
200
238
174
286
319
265
136
220
315
Other revenue
120
250
129
234
546
352
435
124
643
356
Expenses
170
173
360
264
184
582
273
503
296
295
484
Rent
50
Other expenses
123
310
214
134
532
223
453
246
245
434
To achieve this, the following formula should be written in the [Profit] node.
SUBTRACT([Revenue],[Expenses])
SUBTRACT
(
[Revenue]
,
[Expenses]
)
Profit
130
277
7
144
658
487
118
-13
69
607
239
187
Last updated 2 years ago
Was this helpful?