Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substract in columns 1

Status
Not open for further replies.

p658484

Technical User
Feb 12, 2009
20
CA
Hello
I would like some helps getting a formula to substract in a column.
I have column a and need the answers as in column b. I have shown the calculation on column c. This is in Cryst 11.
Thank you
a b c
1 10
2 5 -10 a2-a1
3 15 10 a3-a2
4 16 1 a4-a3
 
Your math is incorrect for your first calculation. Anyway, create a formula:

if onfirstrecord or
{table.groupfield} <> previous({table.groupfield}) then
0 else
{table.a}-previous({table.a})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top