Problem with IF in the field statement

T

Tony

I have created form which part is a table with several rows for which I need to calculate the totals. I do not want to display total equal 0
My first question is what is the right syntax for the IF statement to use. I am trying

{IF{=SUM(LEFT)}>0 {=SUM(LEFT)} ""

but it is not working

Any suggestions

Tony
 
M

Martin Seelhofer

Hi Tony

Try using brackets around your condition (and remove any
spaces inside it):

{IF ({=SUM(LEFT)}>0) {=SUM(LEFT)} ""}

Works for me :)


Cheers,
Martin

Tony said:
I have created form which part is a table with several rows for which I
need to calculate the totals. I do not want to display total equal 0.
 
T

Tony

I have modified the IF statement to

{IF{=SUM(b1:d1)}<>"0" {=SUM(b1:d1)} ""

and all is working just fine now

Ton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top