File: jxlrwtest.xls
  Start Row: | Max Rows: (0 for all)

Embedded Excel Row Formulas Example [source]

This is the QueryNew function (for column name reference):
  queryNew("id, name, age, random, active, formulacol, formulacol2","integer,varchar,integer,integer,bit,varchar,varchar")
Formula: [Colum name] = [formula]
In this case, we've got an empty field named "formulacol", and one named "formulacol2" which we'll use to store the formula results
Here are some examples:
  formulacol = SUM(random + age) -- This is obvious- sums the (random + age) row values
  formulacol2 = UPPER(name) -- This will uppercase whatever is in "name" column
Formula Col
Formula Col 2

Test Query Dump:
query
  ACTIVE AGE FORMULACOL FORMULACOL2 ID NAME RANDOM
1 0 24 [empty string] [empty string] 1 User 1 232
2 0 80 [empty string] [empty string] 2 User 2 39
3 0 78 [empty string] [empty string] 3 User 3 268
4 0 84 [empty string] [empty string] 4 User 4 51
5 0 63 [empty string] [empty string] 5 User 5 146
6 0 53 [empty string] [empty string] 6 User 6 138
7 0 78 [empty string] [empty string] 7 User 7 197
8 0 53 [empty string] [empty string] 8 User 8 146
9 0 60 [empty string] [empty string] 9 User 9 371
10 0 56 [empty string] [empty string] 10 User 10 95
11 0 25 [empty string] [empty string] 11 User 11 312
12 0 20 [empty string] [empty string] 12 User 12 409
13 0 56 [empty string] [empty string] 13 User 13 194
14 0 27 [empty string] [empty string] 14 User 14 323
15 0 45 [empty string] [empty string] 15 User 15 312